Skip to content
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

Android Studio 3.0 + Gradle 4.1-rc-1 = "no aspectjrt dependencies in classpath, do nothing" #50

Closed
BrantApps opened this Issue Aug 20, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@BrantApps
Copy link

BrantApps commented Aug 20, 2017

Following the upgrade to Android Studio 3.0, ABT 3.0.0-beta2 with Gradle 4.1-rc-1 no weaving is occurring and the logs state;

:app:transformClassesWithAspectTransformForWithGoogleDebug
there is no aspectjrt dependencies in classpath, do nothing
directoryInput = 77e0d0e28e0bed23d54a35ca22a685be0ff20e71
jarInput = org.jacoco:org.jacoco.agent:0.7.4.201502262128
jarInput = org.aspectj:aspectjrt:1.8.9

My configuration was working as expected with Gradle 3.4 and ABT 2.3.3.

Specifically the errors emanate from;

 static final ASPECTJRT = "aspectjrt"
 ...
 def hasAjRt = false
        for (TransformInput transformInput : inputs) {
            for (JarInput jarInput : transformInput.jarInputs) {
                if (jarInput.file.absolutePath.contains(ASPECTJRT)) {
                    hasAjRt = true
                    break
                }
            }
            if (hasAjRt) break
        }
 }

Rest assured, the rest of the configuration is to standard;

build.gradle

buildscript {    
    dependencies {
        classpath "com.android.tools.build:gradle:3.0.0-beta2"
        classpath "org.aspectj:aspectjtools:1.8.9"
        ...
    }
}

module.gradle

dependencies {
  api "org.aspectj:aspectjrt:1.8.9"
}
@BrantApps

This comment has been minimized.

Copy link
Author

BrantApps commented Nov 11, 2017

This is the same as that reported later as part of #61. Advice there states to re-enable previous Java 8 backports such as retrolambda and disable the new desugaring via;

android.enableDesugar=false
@BrantApps

This comment has been minimized.

Copy link
Author

BrantApps commented Dec 29, 2017

Thank you for the upgrade to v1.1.1. Such a simple change, wish I could help more with this project. You are doing a good job of providing AspectJ support to Android.

@BrantApps BrantApps closed this Dec 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.