今天我将我的 MacBook 升级到 macOS Big Sur 版本 11.0.1。现在,当我尝试为 Android 构建项目时,出现了一个问题。
Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
最佳答案
尝试运行
/usr/libexec/java_home -V
看看这是否显示在列表中/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
对我来说就是这种情况,我不得不删除 Internet Plug-Ins 文件夹中的条目。查看here有关对我有帮助的更多详细信息。
关于android - Ionic + Cordova Android 构建错误 - 找不到 tools.jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64856188/