Skip to content Skip to sidebar Skip to footer

Android Error On Imported Module Build,gradle - Could Not Find Method Instrumenttestcompile()

On import ListViewAnimation library, I get rebuild error Error:(7) A problem occurred evaluating project ':library'. Could not find method instrumentTestCompile() for arguments [

Solution 1:

instrumentTest has been renamed in androidTest in recent android-gradle-plugin

You have to rename in the build.gradle :

  • instrumentTestCompile --> androidTestCompile
  • instrumentTest --> androidTest

Post a Comment for "Android Error On Imported Module Build,gradle - Could Not Find Method Instrumenttestcompile()"