离子cordova构建android失败`执行失败的任务':app:compileDebugJavaWithJavac'

时间:2018-01-27 09:25:28

标签: ionic-framework

我安装了Ionic Cordova BackgroundLocation插件,但是当我构建myapp时,它会给我一个像Execution failed for task ':app:compileDebugJavaWithJavac'.这样的错误,或者你可以看到下图 enter image description here

1 个答案:

答案 0 :(得分:0)

尝试将buildToolsVersion升级到"更高版本"像这样:

compileSdkVersion 25
buildToolsVersion "25.0.1"

如果您没有为此版本安装buildTools,请使用SDKManager作为提示下载。