Error:Execution failed for task ':app:compileDebugJavaWithJavac'.解决方案
2016-10-22 01:40
691 查看
今天导入工程build的时候发生了一个错误;
看这意思就是跟cache有关系。之前在AndoidStudio2.2上写的,现在导入到2.1的版本上了。怀疑是Gradle的问题,于是乎改了发现还是不行。
最后将工程目录里的.gradle文件删除重新导入。则解决此问题。
解决方案:将工程目录里的.gradle文件删除重新启动AndroidStudio导入
Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Could not open local jar classpath snapshot write cache. > Unexpected lock protocol found in lock file. Expected 3, found 0.
看这意思就是跟cache有关系。之前在AndoidStudio2.2上写的,现在导入到2.1的版本上了。怀疑是Gradle的问题,于是乎改了发现还是不行。
最后将工程目录里的.gradle文件删除重新导入。则解决此问题。
解决方案:将工程目录里的.gradle文件删除重新启动AndroidStudio导入
相关文章推荐
- Android Error:Execution failed for task ':app:compileDebugJavaWithJavac' 解决方案
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.解决方案
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilat
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compi
- 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:compileDebugJavaWithJavac'.
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; 奇怪错误
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > compileSdkVersion 'android-24' r
- android编译报错Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
- Bmob之Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the
- 导入Module运行出现问Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed;
- Error:Execution failed for task ':caldroid:compileDebugJavaWithJavac'. > Cannot find System Java Com
- Execution failed for task ':app:compileReleaseJavaWithJavac'解决方案
- Execution failed for task ':app:compileDebugJavaWithJavac'
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; the co
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; see th
- Execution failed for task ':app:compileDebugJavaWithJavac'. Failed to create MD5 hash for file ...
- Error:Execution failed for task ':xxx:compileDebugJavaWithJavac'.
- Android Studio Error:Execution failed for task ':***:compileDebugJavaWithJavac'问题解决办法