Error:Execution failed for task ':app:compileDebugJavaWithJavac' 根本解决方法
2017-10-31 19:19
585 查看
碰到这个异常,很懵逼
查找了各种解决方案,都不对症。
最后发现,造成这种异常的原因有很多。具体的还是要去终端编译,查看到底是什么地方出错了,然后具体问题具体分析。
终端进入项目的根目录,然后输入命令
./gradlew compileDebugJavaWithJavac --stacktrace
最终定位到错误
警告: 无法找到类型
'RequiresApi'
的注释方法 'value()':
找不到android.support.annotation.RequiresApi的类文件
查找了各种解决方案,都不对症。
最后发现,造成这种异常的原因有很多。具体的还是要去终端编译,查看到底是什么地方出错了,然后具体问题具体分析。
终端进入项目的根目录,然后输入命令
./gradlew compileDebugJavaWithJavac --stacktrace
最终定位到错误
警告: 无法找到类型
'RequiresApi'
的注释方法 'value()':
找不到android.support.annotation.RequiresApi的类文件
相关文章推荐
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compi
- 导入Module运行出现问Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed;
- Android Studio Error:Execution failed for task ':***:compileDebugJavaWithJavac'问题解决办法
- Android Error:Execution failed for task ':app:compileDebugJavaWithJavac' 解决方案
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.解决方案
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; see th
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.解决方法
- android编译报错Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; the co
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; 奇怪错误
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > compileSdkVersion 'android-24' r
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilat
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.解决方案
- Bmob之Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compi
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
- 记录Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > 的解决方法
- Error:Execution failed for task ':caldroid:compileDebugJavaWithJavac'. > Cannot find System Java Com
- Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'. (Solved)
- Error:Execution failed for task ':app:compileReleaseJavaWithJavac'