xebia-functional / appsly-android-rest

An Android client library for RESTful based web services.
209 stars 51 forks source link

instrumentTestCompile() is renamed to androidTestCompile() #39

Closed SirCAS closed 10 years ago

SirCAS commented 10 years ago

First of all, this is very new to me and I'm sorry if I should post this here. I've found that instrumentTestCompile() is renamed to androidTestCompile() in the latest version of Gradle which make the build script fail. I guess it's not really a issue as such but it caused me some trouble.

The build.gradle file in the android-rest folder should be updated in the dependencies section. More specific line 35 - instrumentTestCompile 'junit:junit:4.8.2'. It should be changed to androidTestCompile 'junit:junit:4.8.2'.

If not changed users with version 0.9+ will expirence something like:

Build script error, unsupported Gradle DSL method found: ‘instrumentTestCompile()’! Possible causes could be:

  • you are using Gradle version where the method is absent
  • you didn’t apply Gradle plugin which provides the method
  • or there is a mistake in a build script

Awesome library btw - keep up the good work!

raulraja commented 10 years ago

@SirCAS Thanks for letting us know. We will update when we roll up the gradle version. In the meantime if you are just adding Appsly REST to your gradle based project there is no need for you to compile from sources if you just want to access the latest snapshot. There are instructions to include the latest snapshot with gradle in the README. We are planning on releasing soon v1.0. Thanks