Confirmed users
355
edits
Nalexander (talk | contribs) |
Nalexander (talk | contribs) |
||
Line 14: | Line 14: | ||
#: <pre>./mach gradle build</pre> | #: <pre>./mach gradle build</pre> | ||
# Finally, import the newly created Gradle projects into IntelliJ/Android Studio: | # Finally, import the newly created Gradle projects into IntelliJ/Android Studio: | ||
#* ''File'' > ''Import Project...'' and select <tt>$OBJDIR/mobile/android/gradle</tt>, where <tt>$OBJDIR</tt> is your object directory. (The correct directory is printed by the | #* ''File'' > ''Import Project...'' and select <tt>$OBJDIR/mobile/android/gradle</tt>, where <tt>$OBJDIR</tt> is your object directory. (The correct directory is printed by the <tt>mach gradle-install</tt> command.) | ||
#* Select ''Import project from external model'' > ''Gradle'' > ''Next''. | #* Select ''Import project from external model'' > ''Gradle'' > ''Next''. | ||
#* Select ''Use customizable gradle wrapper'' > ''Finish''. | #* Select ''Use customizable gradle wrapper'' > ''Finish''. | ||
# | # You'll need to configure your Android SDK. Go to ''File'' > ''Project Structure'', and then | ||
#* Select ''Android API 21 platform'' for the Project SDK (or whatever is appropriate for your configuration). You may be prompted to add a ''JAVA SDK'' first: your IDE should find a JDK 1.7 or 1.8 install automatically. | #* Select ''Android API 21 platform'' for the Project SDK (or whatever is appropriate for your configuration). You may be prompted to add a ''JAVA SDK'' first: your IDE should find a JDK 1.7 or 1.8 install automatically. | ||
#* Select ''7 - Diamonds, ARM, multi-catch etc.'' for the Project language level. | #* Select ''7 - Diamonds, ARM, multi-catch etc.'' for the Project language level. | ||
You should | You should have a shiny new Gradle-based project in your IDE! Try it out by choosing ''Build'' > ''Rebuild project''. | ||
== Trouble shooting == | == Trouble shooting == |