1

I'm getting the following error after updating android studio to 2.3;

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'. org.gradle.api.internal.artifacts.configurations.ConfigurationInternal.getModule()Lorg/gradle/api/internal/artifacts/ModuleInternal;

I already tried this solution,without succes.

Community
  • 1
  • 1
Kenneth Breugelmans
  • 501
  • 1
  • 8
  • 22

1 Answers1

1

I had the similar issue and then run ./gradlew app:dependencies --stacktrace command in the terminal (note stacktrace option). The stacktrace was:

java.lang.NoSuchMethodError: org.gradle.api.internal.artifacts.configurations.ConfigurationInternal.getModule()Lorg/gradle/api/internal/artifacts/ModuleInternal;
        at org.gradle.api.plugins.AndroidMavenPlugin$8.execute(AndroidMavenPlugin.java:167)
        at org.gradle.api.plugins.AndroidMavenPlugin$8.execute(AndroidMavenPlugin.java:159)
...

That result pointed me to the maven plugin I'm using in the project: com.github.dcendents:android-maven-gradle-plugin. After googling I found the same issue on their Github and the solution is to upgrade to their latest version 1.5 which adds support of Gradle 3.0.

BTW, before all that I cleared my .gradle folder at home directory and relaunch Android Studio with killing java processes but still not sure if these steps were obvious.

P.S. Also, later I had to upgrade Robolectric to the latest version for my tests executing successfully. So, even if your issue isn't related to maven plugin my assumption is that you need to re-check all dependencies you are using if they work with the new Gradle version.

Andrew Panasiuk
  • 626
  • 1
  • 8
  • 17