Converted project not showing up as Gradle

Issue #10 resolved
Mitch Claborn created an issue

Discussion at https://groups.google.com/forum/#!topic/nbandroid-discuss/hCq_NPW4JnI

NB 7.4 patch 1 Started with a regular (non-Gradle) NBAndroid project.
Created my own build.gradle and settings.gradle files. The project is not recognized as a Gradle project, so none of the Andoird Gradle functions are visible.

Will attached a tarball of the project and the IDE log file when opening the project.

Comments (4)

  1. Radim Kubacki
    • The ide.log is not full - I hoped to see plugin versions and verify that everything what is needed is installed. Nevermind.

    • The problem is the converted structure - I'll fix android plugin to allow gradle project loading. In the meantime you can move AndroidManifest.xml from root directory ('res/AndroidManifest.xml' worked for me) and update build.gradle accordingly to get the project loaded.

    • I have made few more changes to build.gradle: classpath 'com.android.tools.build:gradle:0.6.+' is a newer version that requires Gradle 1.8 (NetBeans Gradle plugin will issue a warning about this version but it is not blocking). I commented Java 7 compile options to avoid http://stackoverflow.com/questions/7866723/dx-bad-class-file-magic-cafebabe-or-version-0033-0000-with-adk14 (didn't have enough time to resolve it). Perhaps use 'buildToolsVersion "18.0.1"' to avoid http://code.google.com/p/android/issues/detail?id=61710

  2. Mitch Claborn reporter

    Making those changes allowed the project to be recognized as a Gradle project. Thanks!

    I'm running into other issues - I'll start new threads in the Google group for those.

  3. Log in to comment