Android开发手记之Could not find tools.jar
Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':flutter_webview_plugin:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK installation.
Ubuntu 20.04安装的open jdk 8,只是JRE,缺少信息 (/usr/lib/jvm/java-8-openjdk-amd64)
需要重新安装下
sudo apt-get install openjdk-8-jdk
Ubuntu 20.04 上默认使用的是:java-11-openjdk-amd64