Archinamon / android-gradle-aspectj

gradle plug-in adding supports of AspectJ into Android project
Apache License 2.0
363 stars 58 forks source link

ERROR: Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getVariantDslInfo()Lcom/android/build/gradle/internal/core/VariantDslInfo;'. #120

Open rahuljain88 opened 4 years ago

rahuljain88 commented 4 years ago

I am using Archinamon( com.archinamon:android-gradle-aspectj:4.2.0 ),Android gradle version ( com.android.tools.build:gradle:3.6.2) and distributionUrl (https\://services.gradle.org/distributions/gradle-6.1-all.zip).

Getting below error ERROR: Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getVariantDslInfo()Lcom/android/build/gradle/internal/core/VariantDslInfo;'. Possible causes for this unexpected error include:

davidwong commented 4 years ago

I think com.archinamon:android-gradle-aspectj:4.2.x was updated to be compatible with AGP 4.0, so probably won't work with 3.6.2.

rahuljain88 commented 4 years ago

Thanks David it's works fine with gradle 4.0+

But when i use gradle version 3.6+ and archinamon version is 4.1.0 , still app is crashing with below error

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/R$drawable;

any update on this ?