HujiangTechnology / gradle_plugin_android_aspectjx

A Android gradle plugin that effects AspectJ on Android project and can hook methods in Kotlin, aar and jar file.
Apache License 2.0
3.93k stars 568 forks source link

Cause: zip file is empty #184

Open andasl opened 5 years ago

andasl commented 5 years ago

Cause: zip file is empty

@AfterReturning(returning="rvt", pointcut="@annotatio

chweiGitHub commented 5 years ago

我也是一直出现这个问题, 新建的工程只要引入就报这个错误。。

kriywu commented 5 years ago

解决了吗?我也是报这个错误

LucasDevelop commented 5 years ago

+1

a615696671 commented 5 years ago

我也出现这个问题了 并且用gradle compileDebug --stacktrace也没发现什么有用的信息

a615696671 commented 5 years ago

我的问题是aop类里面写的有问题

houtrry commented 4 years ago

问题和原因同楼上. 我也出现了这个问题. 检查修改aop语法问题后, 问题消失. 有点坑啊...

CelebrateG commented 4 years ago

我看有的是把 exclude 'com.google' 加上,加上之后我的realm会出现 ClassNotDefFound

loong2014 commented 4 years ago

同样时aop引起的,坑

Klien-m commented 3 years ago

这个问题太难搞了,最后没办法只能使用 include 指定自己需要切入的类了

baohexin commented 3 years ago

同样的问题,找了半天才找到是这个库造成的,不知道怎么解决

Klien-m commented 3 years ago

同样的问题,找了半天才找到是这个库造成的,不知道怎么解决

使用 include 指定自己需要切入的类,我暂时是这样解决的

baohexin commented 3 years ago

@Klien-m 能贴个具体代码吗或者加个联系方式指导下

Klien-m commented 3 years ago

@Klien-m 能贴个具体代码吗或者加个联系方式指导下

我项目中的 aop 主要用来解决权限申请问题,所以切入的范围就是我项目包下的代码. 假设项目包名是 com.example.aspectdemo,那就在 build.gradle 文件中加上

android {
    aspectjx {
        include 'com.example.aspectdemo'
    }
}

如果这样也解决不了你的问题,那我就爱莫能助了