Open tuke0919 opened 4 years ago
我这也出现这个问题。查到是语法写的有问题。可以Build Output 上部,会有红色提示的,不是Exception部分。
Invalid pointcut 'execution(@ExecuteTime (..)': org.aspectj.weaver.patterns.ParserException: ) at position 0 Invalid pointcut 'execution(@ExecuteTime (..)': org.aspectj.weaver.patterns.ParserException: ) at position 0
Task :app:transformClassesWithAjxForDebug :app:transformClassesWithAjxForDebug spend 489ms
Task :app:transformClassesWithDexBuilderForDebug FAILED com.android.builder.dexing.JarClassFileInput$JarClassFileInputsException: Unable to read jar file
I use include to fix this error.
you can use exlude to fix this error, but i think exlude is unscientific.
like this
aspectjx { include 'com.macoli.marslog' }
条件: // aspectjx classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.8' apply plugin: 'android-aspectjx' aspectjx { // AspectJX功能 enabled true exclude 'com.tencent', 'androidx', 'com.google', 'com.squareup', 'com.alipay', 'org.apache', 'com.alipay', 'com.facebook', 'cn.jiguang', 'com.github', 'com.meizu', 'com.huawei', 'com.qiyukf', 'com.sina', 'io.reactivex', 'de.greenrobot.event', 'com.netease.neliveplayer', 'com.umeng', 'im.yixin', 'com.commonsware', 'io.fabric', 'rx.android', 'com.android' } AGP版本:3.1.4 Grade:5.1.1 代码: ` @Aspect public class AspectJx {
} `
studio编译异常,求大神解答呀