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

Gradle 1.10 for both projects? #8

Closed
tmcw opened this issue Feb 20, 2014 · 5 comments
Closed

Gradle 1.10 for both projects? #8

tmcw opened this issue Feb 20, 2014 · 5 comments
Assignees

Comments

@tmcw
Copy link
Contributor

tmcw commented Feb 20, 2014

2014-02-20 at 6 08 pm

Welp, moved a source file from one place to another and apparently disturbed the beast.

@tmcw
Copy link
Contributor Author

tmcw commented Feb 20, 2014

Stashing work for both repos in location-ui branch. @bleege have you seen this error before?

Otherwise hoping that the IntelliJ Magic 8 Ball Infernal Configuration Generator gives me something else tomorrow.

@bleege bleege self-assigned this Feb 21, 2014
@bleege
Copy link
Contributor

bleege commented Feb 21, 2014

Yep. That's an issue with Gradle as they moved that class to a different package between 1.9 and 1.10. Ran into it several times myself last night. The big thing is to make sure that your IDE is using 1.10 for all it's work, which is where the Gradle wrapper comes in.

Fix:

// In Terminal Shell - Regenerate proper version of Gradle Wrapper
cd <PROJECT_ROOT>
gradle wrapper

After that's done, make sure that the project in IntelliJ is setup to use the Gradle wrapper (instead of any other version of Gradle you may have installed on your computer). Here's the instructions on how to do this:

https://www.jetbrains.com/idea/webhelp/gradle-2.html

@tmcw
Copy link
Contributor Author

tmcw commented Feb 21, 2014

gradle wrapper fails with

mapbox-android-demo➟ gradle wrapper

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/tmcw/src/mapbox-android-demo/MapBoxAndroidDemo/build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':MapBoxAndroidDemo'.
> Could not create plugin of type 'AppPlugin'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.569 secs

and the internets indicate gradle 1.10 is just not supported with the android plugin: https://code.google.com/p/android/issues/detail?id=63972

@tmcw
Copy link
Contributor Author

tmcw commented Feb 21, 2014

Ahh I just needed to merge master. Thanks for the guidance @bleege, easy to get frustrated with this kind of config stuff :)

@tmcw tmcw closed this as completed Feb 21, 2014
@bleege
Copy link
Contributor

bleege commented Feb 21, 2014

Happy to help @tmcw . I hear ya though... it's always the little things like this that are the most frustrating and it's usually something small that is ultimately the solution.

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

No branches or pull requests

2 participants