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

When using this template, I've faced some problems #12

Closed
DavidPerezIngeniero opened this issue Jul 15, 2014 · 3 comments
Closed

When using this template, I've faced some problems #12

DavidPerezIngeniero opened this issue Jul 15, 2014 · 3 comments

Comments

@DavidPerezIngeniero
Copy link

Problem #1: this bug stops me from working:

https://github.com/novoda/gradle-android-test-plugin/issues/10

Problem #2:

In the UnitTestsRobolectric/build.gradle, I've had to change this line:

classpath "com.novoda:gradle-android-test-plugin:0.9.9-SNAPSHOT"

to this other:

classpath "com.novoda:gradle-android-test-plugin:0.9.3-SNAPSHOT"

Otherwise, Gradle cannot download the version.

@DavidPerezIngeniero
Copy link
Author

This is the exact error I get:

* What went wrong:
A problem occurred configuring project ':ComponentTestsRobolectric'.
> Could not resolve all dependencies for configuration ':ComponentTestsRobolectric:classpath'.
   > Could not resolve com.novoda:gradle-android-test-plugin:0.9.9-SNAPSHOT.
     Required by:
         com.example:ComponentTestsRobolectric:unspecified
      > java.lang.NullPointerException (no error message)

@nenick
Copy link
Owner

nenick commented Jul 15, 2014

Yes the gradle-android-test-plugin:0.9.9-SNAPSHOT is not released yet and i can't explain why. Until they merge my PR we are forced to use a custom version.

In the project you can find a script install-custom-gradle-test-plugin.sh which will install the missing plugin.

Tips for this topic and more can be found at readme.md https://github.com/nenick/android-gradle-template/blob/master/README.md and at the wiki https://github.com/nenick/android-gradle-template/wiki

@DavidPerezIngeniero
Copy link
Author

Thanks for your quick response. Now it works much better than before. :-)

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

2 participants