Skip to content
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

After upgrade Android gradle plugin to 3.0.0, apply plugin blockcanaryex failed. #19

Open
qinjunli opened this issue Jul 17, 2017 · 5 comments

Comments

@qinjunli
Copy link

Caused by: java.lang.ExceptionInInitializerError
at org.gradle.api.internal.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:56)
at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:72)
... 113 more
Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.DefaultVersionComparator.asStringComparator() is applicable for argument types: () values: []
Possible solutions: asVersionComparator()
at com.letv.sarrsdesktop.blockcanaryex.BlockCanaryExPlugin.(BlockCanaryExPlugin.groovy:42)
... 115 more

Environment:

  1. Android studio 3.0
  2. Android gradle plugin 3.0.0-alpha6
  3. BlockCanaryExPlugin 0.9.9.2
@SaeedMasoumi
Copy link

Same issue

1 similar comment
@xihuxiaolongren
Copy link

Same issue

@seiginonakama
Copy link
Owner

fixed in BlockCanaryExPlugin 0.9.9.4.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0' //version must >= 1.5.0
        classpath 'com.letv.sarrsdesktop:BlockCanaryExPlugin:0.9.9.4'
    }
}

@qinjunli @SaeedMasoumi @xihuxiaolongren you can have a try.

@SaeedMasoumi
Copy link

@seiginonakama I've got the following error after using the newer version

Execution failed for task ':presentation:transformClassesWithBlockCanaryExForMockDebug'.
> No signature of method: java.lang.String.getName() is applicable for argument types: () values: []
  Possible solutions: getAt(groovy.lang.EmptyRange), getAt(java.lang.String), getAt(int), getAt(int), getAt(groovy.lang.Range), getAt(groovy.lang.IntRange)

@seiginonakama
Copy link
Owner

@SaeedMasoumi fixed in BlockCanaryExPlugin 0.9.9.5。(fxxk tpye-unsafe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants