I did hope that the plugin team would release a quick-fix, but at the time of writing, this still isn't the case.
You can temporarily fix this by updating your build.gradle file with a forked plugin.
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
//required to get the plugin working again with gradle:0.11+ and AS0.6.0
maven { url 'https://github.com/rockerhieu/mvn-repo/raw/master/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
//classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+'
//required to get the plugin working again on AS 0.6.0
classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.1-SNAPSHOT'
}
}
...
See https://github.com/robolectric/robolectric-gradle-plugin/issues/31 for more information on the issue status.
Geen opmerkingen:
Een reactie posten