安卓编译错误app:compileDebugJavaWithJavac>Compilation failed; see the compiler error output for details.

来源:互联网 发布:js最新正则表达式大全 编辑:程序博客网 时间:2024/05/22 23:36
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.

编译代码的时候出现了这种错误,于是在网上找了方法经过了多次试验:
1,先尝试在重新运行一两遍试试。
2、先试一下Clean and Rebuild Project,然后运行一下看看
3、不行的话改一下build.gradle里面的设置

compileSdkVersion 23buildToolsVersion "23.0.1"

注意,之后也一定要Clean and Rebuild Project,很重要!!

阅读全文
0 0
原创粉丝点击