Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

来源:互联网 发布:姚明奥尼尔对决数据 编辑:程序博客网 时间:2024/06/05 18:05
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

> Could not expand ZIP 'D:\test_tonghuasun\xinhuaexpress\app\build\intermediates\exploded-aar\xhs_v1.0.1-release\jars\classes.jar'.

最近在做项目的时,导入第三方夹包运行的时候出现了图片上的错误:找了一下资料才知道上当前Android Studio的编译版本过高:

我原先的编译版本的是:'com.android.tools.build:gradle:2.2.0'

降低之后的编译版本是: 'com.android.tools.build:gradle:2.0.0'


在运行就没有上没这个错误了。


备注:我的Android Studio版本是2.2,如果的你的Studio版本和我的不一样,就把你的编译版本降一级就好。

阅读全文
0 0