android - java.lang.AbstractMethodError on lint when using gradle build -


this build.gradle:

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.14.0'         classpath 'com.github.jcandksolutions.gradle:android-unit-test:1.6.3'     } }  allprojects {     repositories {         maven { url "http://dl.bintray.com/populov/maven" }         mavencentral()     } }  apply plugin: 'com.android.application'  android {     lintoptions {         abortonerror false     }     packagingoptions {         exclude 'license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/lgp2.1'         exclude 'meta-inf/lgpl2.1'     }     compilesdkversion 21     buildtoolsversion "21.1.0"      defaultconfig {         applicationid "com.example"         minsdkversion 9         targetsdkversion 21         versioncode 1         versionname "1.0.0"         testinstrumentationrunner "com.google.android.apps.common.testing.testrunner.googleinstrumentationtestrunner"     }      buildtypes {         release {             runproguard false         }     }      sourcesets {         androidtest {             setroot('src/espressotest')         }     } }  apply plugin: 'android-unit-test'  dependencies {     // app     compile 'com.google.android.gms:play-services:6.1.71'     compile 'com.android.support:appcompat-v7:21.0.0'     compile 'com.android.support:support-v4:21.0.0'     compile 'com.squareup.okhttp:okhttp:2.0.0'     compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'     compile 'com.squareup.retrofit:retrofit:1.6.1'     compile 'com.squareup.picasso:picasso:2.3.4'     compile 'com.squareup:otto:1.3.5'     compile 'com.google.guava:guava:18.0'     compile 'com.astuetz:pagerslidingtabstrip:1.0.1'     compile 'com.viewpagerindicator:library:2.4.1@aar'     compile 'com.wrapp.floatlabelededittext:library:0.0.3'     compile 'com.daimajia.swipelayout:library:1.0.7@aar'     compile 'com.github.flavienlaurent.datetimepicker:library:0.0.2'     compile 'info.hoang8f:android-segmented:1.0.2'     compile 'com.nineoldandroids:library:2.4.0'     compile 'com.daimajia.easing:library:1.0.0@aar'     compile 'com.daimajia.androidanimations:library:1.1.2@aar'     compile 'com.balysv.materialmenu:material-menu-toolbar:1.4.0'     compile 'com.squareup.dagger:dagger:1.1.0'     compile 'com.squareup.dagger:dagger-compiler:1.1.0'      // espresso     androidtestcompile files('lib/espresso-1.1.jar', 'lib/testrunner-1.1.jar', 'lib/testrunner-runtime-1.1.jar')     androidtestcompile 'com.google.guava:guava:14.0.1'     androidtestcompile 'org.hamcrest:hamcrest-integration:1.1'     androidtestcompile 'org.hamcrest:hamcrest-core:1.1'     androidtestcompile 'org.hamcrest:hamcrest-library:1.1'      // robolectric     testcompile('junit:junit:4.11') {         exclude module: 'hamcrest-core'     }     testcompile files('lib/robolectric-2.4-snapshot-jar-with-dependencies.jar')     testcompile 'org.mockito:mockito-all:1.9.5'     testcompile 'com.squareup:fest-android:1.0.+'     testcompile 'com.googlecode.catch-exception:catch-exception:1.2.0' }  tasks.findbyname("assembledebug").dependson("testdebugclasses") 

and when i'm executing:

./gradlew clean build 

i error:

* went wrong: execution failed task ':app:lint'. > java.lang.abstractmethoderror (no error message)  * exception is: org.gradle.api.tasks.taskexecutionexception: execution failed task ':app:lint'.     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:69)     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.execute(executeactionstaskexecuter.java:46)     @ org.gradle.api.internal.tasks.execution.postexecutionanalysistaskexecuter.execute(postexecutionanalysistaskexecuter.java:35)     @ org.gradle.api.internal.tasks.execution.skipuptodatetaskexecuter.execute(skipuptodatetaskexecuter.java:64)     @ org.gradle.api.internal.tasks.execution.validatingtaskexecuter.execute(validatingtaskexecuter.java:58)     @ org.gradle.api.internal.tasks.execution.skipemptysourcefilestaskexecuter.execute(skipemptysourcefilestaskexecuter.java:42)     @ org.gradle.api.internal.tasks.execution.skiptaskwithnoactionsexecuter.execute(skiptaskwithnoactionsexecuter.java:52)     @ org.gradle.api.internal.tasks.execution.skiponlyiftaskexecuter.execute(skiponlyiftaskexecuter.java:53)     @ org.gradle.api.internal.tasks.execution.executeatmostoncetaskexecuter.execute(executeatmostoncetaskexecuter.java:43)     @ org.gradle.api.internal.abstracttask.executewithoutthrowingtaskfailure(abstracttask.java:305)     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.executetask(abstracttaskplanexecutor.java:79)     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.processtask(abstracttaskplanexecutor.java:63)     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.run(abstracttaskplanexecutor.java:51)     @ org.gradle.execution.taskgraph.defaulttaskplanexecutor.process(defaulttaskplanexecutor.java:23)     @ org.gradle.execution.taskgraph.defaulttaskgraphexecuter.execute(defaulttaskgraphexecuter.java:88)     @ org.gradle.execution.selectedtaskexecutionaction.execute(selectedtaskexecutionaction.java:29)     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62)     @ org.gradle.execution.defaultbuildexecuter.access$200(defaultbuildexecuter.java:23)     @ org.gradle.execution.defaultbuildexecuter$2.proceed(defaultbuildexecuter.java:68)     @ org.gradle.execution.dryrunbuildexecutionaction.execute(dryrunbuildexecutionaction.java:32)     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62)     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:55)     @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:149)     @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:106)     @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:86)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.run(inprocessbuildactionexecuter.java:80)     @ org.gradle.launcher.cli.executebuildaction.run(executebuildaction.java:33)     @ org.gradle.launcher.cli.executebuildaction.run(executebuildaction.java:24)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:36)     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:26)     @ org.gradle.launcher.cli.runbuildaction.run(runbuildaction.java:51)     @ org.gradle.internal.actions$runnableactionadapter.execute(actions.java:171)     @ org.gradle.launcher.cli.commandlineactionfactory$parseandbuildaction.execute(commandlineactionfactory.java:237)     @ org.gradle.launcher.cli.commandlineactionfactory$parseandbuildaction.execute(commandlineactionfactory.java:210)     @ org.gradle.launcher.cli.javaruntimevalidationaction.execute(javaruntimevalidationaction.java:35)     @ org.gradle.launcher.cli.javaruntimevalidationaction.execute(javaruntimevalidationaction.java:24)     @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:206)     @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:169)     @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:33)     @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:22)     @ org.gradle.launcher.main.doaction(main.java:33)     @ org.gradle.launcher.bootstrap.entrypoint.run(entrypoint.java:45)     @ org.gradle.launcher.bootstrap.processbootstrap.runnoexit(processbootstrap.java:54)     @ org.gradle.launcher.bootstrap.processbootstrap.run(processbootstrap.java:35)     @ org.gradle.launcher.gradlemain.main(gradlemain.java:23)     @ org.gradle.wrapper.bootstrapmainstarter.start(bootstrapmainstarter.java:33)     @ org.gradle.wrapper.wrapperexecutor.execute(wrapperexecutor.java:130)     @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:48) caused by: java.lang.abstractmethoderror     @ com.android.build.gradle.internal.model.sourceproviderimpl.cloneprovider(sourceproviderimpl.java:56)     @ com.android.build.gradle.internal.model.javaartifactimpl.clone(javaartifactimpl.java:38)     @ com.android.build.gradle.internal.model.javaartifactimpl$clone.call(unknown source)     @ com.android.build.gradle.internal.model.modelbuilder.createvariant(modelbuilder.groovy:193)     @ com.android.build.gradle.internal.model.modelbuilder.buildall(modelbuilder.groovy:136)     @ org.gradle.tooling.provider.model.toolingmodelbuilder$buildall.call(unknown source)     @ com.android.build.gradle.tasks.lint.createandroidproject(lint.groovy:222)     @ com.android.build.gradle.tasks.lint.lint(lint.groovy:63)     @ org.gradle.internal.reflect.javamethod.invoke(javamethod.java:63)     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.doexecute(annotationprocessingtaskfactory.java:218)     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:211)     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:200)     @ org.gradle.api.internal.abstracttask$taskactionwrapper.execute(abstracttask.java:579)     @ org.gradle.api.internal.abstracttask$taskactionwrapper.execute(abstracttask.java:562)     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeaction(executeactionstaskexecuter.java:80)     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:61)     ... 47 more 

any ideas?

the issue com.github.jcandksolutions.gradle:android-unit-test:1.6.3. see this issue.

update latest version of library (as latest gradle tools while you're @ it)

classpath 'com.android.tools.build:gradle:0.14.2' classpath 'com.github.jcandksolutions.gradle:android-unit-test:2.0.1' 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -