-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error with a android project with 2 flavours #28
Comments
|
I am not sure to understand:
I can't see where two or more classes conflict... The gradle console gives me this log before failing: :app:transformClassesWithAspectTransformForInternalDebug FAILURE: Build failed with an exception.
To get around the problem, is there any way to restrict code weaving to a few classes, using IncludeJarFilter and ExcludeJarFilter ? |
Hi, I am trying to use aspects on an android project but build failed with the exception
Execution failed for task ':app:transformClassesWithExtractJarsForInternalDebug'.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithExtractJarsForInternalDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
...
Caused by: java.lang.RuntimeException: error
at com.android.build.gradle.internal.pipeline.IntermediateFolderUtils.parseScopeLevelFolders(IntermediateFolderUtils.java:444)
at com.android.build.gradle.internal.pipeline.IntermediateFolderUtils.parseTypeLevelFolders(IntermediateFolderUtils.java:411)
at com.android.build.gradle.internal.pipeline.IntermediateFolderUtils.computeNonIncrementalInputFromFolder(IntermediateFolderUtils.java:116)
at com.android.build.gradle.internal.pipeline.IntermediateStream.asNonIncrementalInput(IntermediateStream.java:132)
at com.android.build.gradle.internal.pipeline.TransformTask.computeNonIncTransformInput(TransformTask.java:246)
What I did to use aspectJX
resolutionStrategy { cacheChangingModulesFor 0, 'seconds' }
dependencies {... classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:1.0.9'}
apply plugin: 'android-aspectjx'
aspectjx { includeJarFilter 'android.context' excludeJarFilter '.jar' }
dependencies {
...
compile 'org.aspectj:aspectjtools:1.8.9'
compile project ':aspectjx'
}
My objective is to add a join point in android.context.Context.
Note: my app has 2 "flavors" (public and internal), hence the "transform...InternalDebug", and no join point has been defined yet.
Did I miss something ?
Thanks
The text was updated successfully, but these errors were encountered: