Android studio导入项目的时候报错:Error:Execution failed for task ':app:compileDebugJava'. > Cannot find Syste
2017-11-22 16:54
507 查看
今天从github上下载了一个项目,在打开的时候。编译成功。但是运行的时候报错:
Error:Execution failed for task ‘:app:compileDebugJava’.
Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
但是打开别的项目都是好的。。。查了一下:解决办法:
运行还是不行的话。请看原因二:
你要导入项目的gradle版本不对,要么过高要么过低,建议将gradle版本改为新建项目的gradle版本
我的原因是因为这个。。。
重新运行就可以了。
每日语录:
在你还没有足够强大、足够优秀时,先别花太多宝贵的时间去社交,多花点时间读书、提高专业技能。放弃那些无用的社交,提升自己,你的世界才能更大。加油。。。
单曲循环《You can trust in me》
Error:Execution failed for task ‘:app:compileDebugJava’.
Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
但是打开别的项目都是好的。。。查了一下:解决办法:
File-->Project-->Structrue-->SDK Location-->JDK location Use embedded JDK 前面勾去掉,指定一个JDK地址。
运行还是不行的话。请看原因二:
你要导入项目的gradle版本不对,要么过高要么过低,建议将gradle版本改为新建项目的gradle版本
我的原因是因为这个。。。
重新运行就可以了。
每日语录:
在你还没有足够强大、足够优秀时,先别花太多宝贵的时间去社交,多花点时间读书、提高专业技能。放弃那些无用的社交,提升自己,你的世界才能更大。加油。。。
单曲循环《You can trust in me》
相关文章推荐
- android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger
- android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger
- Android导入项目报错Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'. > M
- 导入Module运行出现问Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed;
- eclipse 工程导入到Android Studio 出现的问题Error:Execution failed for task ':app:mergeDebugResources'. >
- 项目编译出错Error:Execution failed for task ':app:compileDebugJava'.
- Error:Execution failed for task ':caldroid:compileDebugJavaWithJavac'. > Cannot find System Java Com
- Android Studio报错之Error:Execution failed for task ':app:processDebugResources'. > java.io.IOException
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.bui
- 【填坑】Android Studio更改SDK路径后gradle出错,Error:Execution failed for task ':app:compileRetrolambdaDebug'. >
- Android Studio 导入工程出现Error:Execution failed for task ':app:mergeDebugResources'.
- Android Studio clean 时产生 Error:Execution failed for task ':app:mockableAndroidJar' > java.lang.NullP
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.lang.RuntimeException: Som
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Java.util.concurrent.ExecutionE
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.util.concurrent.ExecutionE
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.lang.RuntimeException: Cru
- Android Studio工程Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.错误
- 关于Android Studio 报Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger fa
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Java.util.concurrent.ExecutionE
- Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'. > java.lang.