Android project can't build if gradle 2.0 is used

Issue #45 invalid
Martin Weißhaupt created an issue

Well I know that the highest gradle version that Android supports is version 1.12 but if you set the gradle home in Netbeans settings to 2.0 and add a profile for Android with gradle 1.12 Netbeans still can't parse the project because it still uses 2.0 for this.

Please add an option to use gradle 2.0 for Netbeans but for Android 1.12.

Comments (8)

  1. Radim Kubacki

    I am confused here and not sure what is exactly the problem. I'd recommend you to use Gradle wrapper (http://www.gradle.org/docs/current/userguide/gradle_wrapper.html) for your project and lock it to Gradle 1.12 for the moment. When the Android support will be updated to work with Gradle 2.x you will update wrapper configuration to use newer Gradle. NetBeans integration can and should be configured to honor the wrapper settings.

  2. Martin Weißhaupt reporter

    Sorry I'm new to gradle and I can't get it to work. Do you have a example project that works with Netbeans? Thx

  3. Martin Weißhaupt reporter

    Sorry, I can't get anything to work if gradle 2.0 is configured in Netbeans so I've attached the Testproject that was created from AndroidStudio.

  4. Radim Kubacki

    Leave 'Gradle Installation Folder' in Tools | Options | Misc | Gradle blank to let the Gradle support use wrapper associated with the project - that way it will correctly use 1.12. At the moment Gradle plugin providing Android support (version 0.12) doesn't work with Gradle. When it gets updated NBAndroid will be updated too.

  5. Martin Weißhaupt reporter

    I experimented a lot last weekend and you are absolutely right. The better aproach is to leave the setting unchanged and to use a gradle-wrapper for each project so I can build both the android project and my Java-EE project with gradle.

    Thank you for your help!

  6. Log in to comment