Android 编译报错: Caused by: java.util.zip.ZipException: zip file is empty 解决办法

记录一个浪费了几个小时的小坑。

使用 Aspectj 后,一开始还没问题,不知道修改了什么导致编译报错:

Caused by: java.util.zip.ZipException: zip file is empty

各种搜索无果,最后发现,居然是因为自定义的 Pointcut 写错了!删掉后就可以了。

这个报错信息真的是无语。

已标记关键词 清除标记
查资料大家都说:gradle 包的问题 ``` distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip ``` 但是我尝试删掉 重新下载 依然不行 下面贴上日志: ``` * What went wrong: Execution failed for task ':Aliyunplayer:player_demo:javaPreCompileDebug'. > Could not resolve all files for configuration ':Aliyunplayer:player_demo:debugCompileClasspath'. > Failed to transform artifact 'AliyunPlayer-4.7.4-part.aar (project :Aliyunplayer:AlivcPlayer)' to match attributes {artifactType=android-classes, org.gradle.usage=java-api}. > Execution failed for AarToClassTransform: D:\Work\_HelloHobby\Aliyunplayer\AlivcPlayer\build\.transforms\8a0a0aaf4248a5a267aa6930fc90b815\jetified-AliyunPlayer-4.7.4-part.aar. > zip file is empty * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':Aliyunplayer:player_demo:javaPreCompileDebug'. at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416) at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) at org.gradle.interna ``` 求好心大神帮帮忙 拜托~
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页
实付 99.90元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值