AabResGuard icon indicating copy to clipboard operation
AabResGuard copied to clipboard

[Gradle issue]

Open picky82 opened this issue 4 years ago • 1 comments
trafficstars

I get this error: Unable to find method 'com.android.build.gradle.AppPlugin.getVariantManager()Lcom/android/build/gradle/internal/VariantManager;' com.android.build.gradle.AppPlugin.getVariantManager()Lcom/android/build/gradle/internal/VariantManager;

A problem occurred configuring project ':app'. Failed to notify project evaluation listener. com.android.build.gradle.AppPlugin.getVariantManager()Lcom/android/build/gradle/internal/VariantManager;

Info:

  • OS: Windows 10
  • Android studio version: 4.1.1
  • Gradle version: 6.5

picky82 avatar Nov 24 '20 12:11 picky82

the same issue , has any good solution?

AndroidStudio 4.1.1 gradle plugin "com.android.tools.build:gradle:4.1.1" or 4.1.3 gradle-wrapper distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip

Sync Error Detail:

Unable to find method 'com.android.build.gradle.AppPlugin.getVariantManager()Lcom/android/build/gradle/internal/VariantManager;' com.android.build.gradle.AppPlugin.getVariantManager()Lcom/android/build/gradle/internal/VariantManager;

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

hr1995 avatar Sep 11 '21 07:09 hr1995