groovy / groovy-android-gradle-plugin

A Gradle plugin to support the Groovy language for building Android apps
Apache License 2.0
850 stars 116 forks source link

Unable to load class 'com.android.build.gradle.internal.scope.BaseScope' #121

Closed fattchris closed 8 years ago

fattchris commented 8 years ago

While attempting to upgrade to Gradle 2.2.0 Alpha 6, I get this issue and applying the plugin fails. This works fine with Gradle 2.1.2.

fattchris commented 8 years ago

It looks like there is a PR for this already even..........

AndrewReitz commented 8 years ago

Alpha and beta versions of the android plugin are not supported. When 2.2.0 is officially released that PR will be merged in.

AHarazim commented 8 years ago

@pieces029 Hi, can you merge the PR since android plugin 2.2.0 stable is released now?

AndrewReitz commented 8 years ago

@AHarazim this has already been merged. As well as the update to 2.2.0. It has not yet been released as I'm working on a few documentation changes so it is available in the snapshot.

If you do not want to use the snapshot version you can simply exclude the version that the plugin was built with and include whatever version you want.

classpath('org.codehaus.groovy:groovy-android-gradle-plugin:1.0.0') {
  exclude group: 'com.android.tools.build'
}
AHarazim commented 8 years ago

@pieces029 Ok, thx for you quick response! ;-)

byencho commented 8 years ago

@AHarazim Did the "exclude group: 'com.android.tools.build'" solution work for you? I'm still getting the same error whether I include that or not.

AndrewReitz commented 8 years ago

Anyone want to give the snapshot a once over? I'm prepping to release today.