Mobile/Fennec/Android/IDEs: Difference between revisions

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 |mach gradle-install| command.)
#* ''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 should have a shiny new Gradle-based project in your IDE!  You'll need to configure your Android SDK:
# You'll need to configure your Android SDK.  Go to ''File'' > ''Project Structure'', and then
# ''File'' > ''Project Structure''
#* 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 be all set!  Try it out by choosing ''Build'' > ''Rebuild project''.
You should have a shiny new Gradle-based project in your IDE!  Try it out by choosing ''Build'' > ''Rebuild project''.


== Trouble shooting ==
== Trouble shooting ==
Confirmed users
355

edits