Can't Find Org.gradle.api.artifacts.result.resolvedmoduleversionresult When Apply Android Plugin In Gradle
Solution 1:
I found there is an issue in Android Open Source Project - Issue Tracker Issue #63822: Unable to load class 'org.gradle.api.artifacts.result.ResolvedModuleVersionResult'
reply by #1 ibill...@pivotallabs.com
It would seem Gradle 1.10 is not supported. Try using an older version of Gralde.
Notice that ResolvedModuleVersionResult is missing here
http://www.gradle.org/docs/1.10/javadoc/org/gradle/api/artifacts/result/package-summary.html
but is present here
http://www.gradle.org/docs/1.9/javadoc/org/gradle/api/artifacts/result/package-summary.html
So I downgrade my gradle to 1.9, it works again.
[Edit My Answer Here For How To Downgrade Gradle in Mac and Ubuntu]
For Mac: I use Homebrew, try Homebrew install specific version of formula?, I use 3.a historic times, works great for me.
For Ubuntu: If you already installed 1.10, try this:
# Install both gradle 1.9 and 1.10 on you ubuntu
sudo apt-get install gradle-1.9
# Check it to make sure
sudo update-alternatives --list gradle
# Config to choose gradle 1.9
sudo update-alternatives --config gradle
# Just select /usr/lib/gradle/1.9/bin/gradle to choose gradle 1.9
Solution 2:
If you are attempting to update your Gradle 1.9 (or lower) project to Gradle 1.10 using
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
and command ./gradlew wrapper
you will get the same error as above.
Solution is to install Gradle 1.10 onto your machine and upgrade your project not using the wrapper
gradle wrapper
Post a Comment for "Can't Find Org.gradle.api.artifacts.result.resolvedmoduleversionresult When Apply Android Plugin In Gradle"