Comments (2)
Execution failed for task ':app:transformClassesWithExtractJarsForInternalDebug'
occurs when two or more java class files conflict. your project dependencies the library(aspectjx
) and the jar(com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.0.9
) at the same time, it is the reason.
from gradle_plugin_android_aspectjx.
I am not sure to understand:
- the project declares the classpath to the plugin library (gradle-android-plugin-aspectjx),
- the custom android library "aspectjx" contains an @aspect public class and a LibrarySDK class (like the AspectJ demo) and depends on appcompat and aspectjrt libraries,
- the app has 2 dependencies (aspectjtools and the "aspectjx" android library), and triggers the plugin at build time.
I can't see where two or more classes conflict... The gradle console gives me this log before failing:
:app:transformClassesWithAspectTransformForInternalDebug
aspect start..........
excludeJar:::[...]
directoryInput:::[...]/.android/build-cache/.../output/data-binding
excludeJar:::[...]/aspectjx/build/intermediates/bundles/default/classes.jar
directoryInput:::[...]/app/build/intermediates/classes/internal/debug
aspect do work..........
Found @DeclareAnnotation while current release does not support it (see 'org.aspectj.weaver.bcel.AtAjAttributes')
aspect jar merging..........
aspect done...................
:app:transformClassesWithAspectTransformForInternalDebug spend 2948ms
:app:transformClassesWithExtractJarsForInternalDebug FAILED
:app:transformClassesWithExtractJarsForInternalDebug spend 2ms
:app:buildInfoGeneratorInternalDebug
:app:buildInfoGeneratorInternalDebug spend 1ms
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:transformClassesWithExtractJarsForInternalDebug'.
...
To get around the problem, is there any way to restrict code weaving to a few classes, using IncludeJarFilter and ExcludeJarFilter ?
from gradle_plugin_android_aspectjx.
Related Issues (20)
- java.util.zip.ZipException: zip file is empty HOT 6
- kotlin 1.5 会报错 HOT 2
- 1年多没更新了,还维护吗 HOT 1
- ArrayIndexOutOfBoundsException HOT 2
- 无法插桩成功怎么回事? 完全按照文档的步骤去配置的 HOT 1
- 插件会导致androidTest找不到class HOT 1
- library中配置的annotation注解不生效 HOT 2
- 原作者已不再维护,继续使用建议使用我fork后修复发布的版本。(给即将使用或已经使用的几点建议) HOT 18
- 关于代码混淆后,AOP切面异常void java.lang.ClassNotFoundException.
- aspectjx会入侵所有的三方包,那是否可以使用include控制到只在本应用的包名下的类生效?而不去第三方sdk包?
- 一个必现的错误:Java+Kotlin找不到启动类 HOT 9
- 什么时候可以支持kotlin1.5.+
- aspectjx加cmake以后各种冲突externalNativeBuildCleanBxn_nationDebug,我把cmake注释掉以后报错Cause: zip file is empty
- gradle7.1后项目,build.gradle使用plugins,要怎么集成使用 HOT 14
- 【include使用】如果不配置,编译太慢了
- 当前是否支持gradle 8.0.1版本,升级后报错 HOT 2
- 这个项目彻底凉了吗 HOT 3
- 社区有没有使用AGP7-AGP8新的api的版本?不使用trasnform 框架的,跪求! HOT 1
- 推荐一个新的 Android 端 AOP 框架,支持 AGP8 以上 https://github.com/FlyJingFish/AndroidAOP HOT 3
- 是不是插件开发支持的版本太旧了?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle_plugin_android_aspectjx.