New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.android.tools.build:gradle:0.11 broke gradle-android-test-plugin #31

Closed
jonasfa opened this Issue Jun 6, 2014 · 6 comments

Comments

Projects
None yet
5 participants
@jonasfa

jonasfa commented Jun 6, 2014

18:31:02.045 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':form_builder'.
18:31:02.045 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79)
18:31:02.045 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:74)
18:31:02.045 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:493)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.AbstractProject.evaluationDependsOn(AbstractProject.java:597)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.AbstractProject.evaluationDependsOn(AbstractProject.java:589)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.Project$evaluationDependsOn.call(Unknown Source)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin$_ensureConfigured_closure161.doCall(BasePlugin.groovy:2440)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.ensureConfigured(BasePlugin.groovy:2439)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.resolveDependencyForConfig(BasePlugin.groovy:2357)
18:31:02.046 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.this$2$resolveDependencyForConfig(BasePlugin.groovy)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin$this$2$resolveDependencyForConfig.callCurrent(Unknown Source)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.resolveDependencies(BasePlugin.groovy:2276)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager.createTasksForDefaultBuild(VariantManager.java:304)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager.createAndroidTasks(VariantManager.java:167)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager$createAndroidTasks.call(Unknown Source)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.groovy:422)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin$_apply_closure7.doCall(BasePlugin.groovy:333)
18:31:02.047 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:31)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at com.sun.proxy.$Proxy13.afterEvaluate(Unknown Source)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter]    ... 29 more
18:31:02.048 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: com.android.builder.BuilderConstants
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:83)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:31)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at com.sun.proxy.$Proxy13.afterEvaluate(Unknown Source)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
18:31:02.049 [ERROR] [org.gradle.BuildExceptionReporter]    ... 52 more
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: com.android.builder.BuilderConstants
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.robolectric.gradle.AndroidTestPlugin$_apply_closure1.class$(AndroidTestPlugin.groovy)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.robolectric.gradle.AndroidTestPlugin$_apply_closure1.$get$$class$com$android$builder$BuilderConstants(AndroidTestPlugin.groovy)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.robolectric.gradle.AndroidTestPlugin$_apply_closure1.doCall(AndroidTestPlugin.groovy:44)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:58)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.listener.ActionBroadcast.execute(ActionBroadcast.java:39)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.DefaultDomainObjectCollection.doAdd(DefaultDomainObjectCollection.java:164)
18:31:02.050 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDomainObjectCollection.java:159)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.LibraryExtension.addVariant(LibraryExtension.groovy:49)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager.createVariantApiObjects(VariantManager.java:597)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager.createApiObjects(VariantManager.java:569)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager.createAndroidTasks(VariantManager.java:216)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.internal.VariantManager$createAndroidTasks.call(Unknown Source)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.groovy:422)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    at com.android.build.gradle.BasePlugin$_apply_closure7.doCall(BasePlugin.groovy:333)
18:31:02.051 [ERROR] [org.gradle.BuildExceptionReporter]    ... 59 more
@felipecsl

This comment has been minimized.

Show comment
Hide comment
@felipecsl

felipecsl Jun 6, 2014

This was fast. I just reported it to adt-dev. Here's the thread link https://groups.google.com/forum/#!topic/adt-dev/A9e-78LVz8E

felipecsl commented Jun 6, 2014

This was fast. I just reported it to adt-dev. Here's the thread link https://groups.google.com/forum/#!topic/adt-dev/A9e-78LVz8E

@rockerhieu

This comment has been minimized.

Show comment
Hide comment
@rockerhieu

rockerhieu Jun 9, 2014

It's fixed on master a3c242f. I think it's just the matter of time they will release a new version of gradle-android-test-plugin.

rockerhieu commented Jun 9, 2014

It's fixed on master a3c242f. I think it's just the matter of time they will release a new version of gradle-android-test-plugin.

@rockerhieu

This comment has been minimized.

Show comment
Hide comment
@rockerhieu

rockerhieu Jun 9, 2014

In the mean time, you can use 0.10.1-SNAPSHOT at https://github.com/rockerhieu/mvn-repo

buildscript {
  repositories {
    mavenCentral()
    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.1-SNAPSHOT'
  }
}

Here is the change I applied temporarily: rockerhieu@6e8d927

rockerhieu commented Jun 9, 2014

In the mean time, you can use 0.10.1-SNAPSHOT at https://github.com/rockerhieu/mvn-repo

buildscript {
  repositories {
    mavenCentral()
    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.1-SNAPSHOT'
  }
}

Here is the change I applied temporarily: rockerhieu@6e8d927

@chrisjenx

This comment has been minimized.

Show comment
Hide comment
@chrisjenx

chrisjenx Jun 9, 2014

Contributor

@rockerhieu I would add a //TODO Use android gradle plugin constant when it reaches 1.0
As Xaiver pointed out the API isn't stable. But we should use it when it hits 1.0.

Contributor

chrisjenx commented Jun 9, 2014

@rockerhieu I would add a //TODO Use android gradle plugin constant when it reaches 1.0
As Xaiver pointed out the API isn't stable. But we should use it when it hits 1.0.

@felipecsl

This comment has been minimized.

Show comment
Hide comment
@felipecsl

felipecsl commented Jun 9, 2014

Thanks @rockerhieu !

@erd

This comment has been minimized.

Show comment
Hide comment
@erd

erd Jun 10, 2014

Member

This should be fixed by #33.

Member

erd commented Jun 10, 2014

This should be fixed by #33.

@erd erd closed this Jun 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment