Mobile/Fennec/Android/IDEs: Difference between revisions

Jump to navigation Jump to search
Line 4: Line 4:


This is the direction that IDE support is moving towards.
This is the direction that IDE support is moving towards.
== Pre-requisites ==
# The Gradle build requires the ''Android Support Repository'' and ''Google Repository'' Android packages.  Install them by navigating to the ''Extras'' section of the SDK list shown by the <tt>android</tt> tool (shipped with the Android SDK).
# The Gradle/IDE integration requires Android-Gradle plugin version '''1.0.0'''.  This, in turn, mandates either
#* IntelliJ '''14.0.3 or higher''' (currently Early Access Preview only!); or
#* Android Studio '''1.0.0''' or higher.
#: See {{bug|1120032}} for details.


== Quick start ==
== Quick start ==
Line 9: Line 17:
# Build and package your tree:
# Build and package your tree:
#: <pre>./mach build && ./mach package</pre>
#: <pre>./mach build && ./mach package</pre>
# The Gradle build requires the ''Android Support Repository'' and ''Google Repository'' Android packages.  Install them by navigating to the ''Extras'' section of the SDK list shown by the <tt>android</tt> tool (shipped with the Android SDK).
# Configure Gradle to build Fennec.  '''Do not skip this step: it configures your object directory for Gradle.'''
# Configure Gradle to build Fennec.  '''Do not skip this step: it configures your object directory for Gradle.'''
#: <pre>./mach gradle-install</pre>
#: <pre>./mach gradle-install</pre>
Line 28: Line 35:
=== Import problems ===
=== Import problems ===


There's a known bug that can make the import fail when using IntelliJ 14.0.2.  Due to incompatibilities between IntelliJ 14.0.2 and the Android-Gradle plugin version 1.0.0, IntelliJ 14.0.2 should [https://bugzilla.mozilla.org/show_bug.cgi?id=1120032#c0 follow these instructions to change their Android-Gradle plugin version].  IntelliJ 14.0.3 should not have the issue.
There's a known bug that can make the import fail when using IntelliJ 14.0.2.  Due to incompatibilities between IntelliJ 14.0.2 and the Android-Gradle plugin version 1.0.0, IntelliJ 14.0.2 should [https://bugzilla.mozilla.org/show_bug.cgi?id=1120032#c0 follow these instructions to change their Android-Gradle plugin version].  IntelliJ 14.0.3 with Android-Gradle plugin version 1.0.0 should not have the issue.
 
=== Debugging problems ===
 
There's a known bug that can make debugging start but fail to stop at breakpoints when using IntelliJ 14.0.2.  It's due to incompatibilities between IntelliJ 14.0.2 and the Android-Gradle plugin version 0.14.4.  IntelliJ 14.0.3 with Android-Gradle plugin version 1.0.0 should not have the issue.


=== Memory ===
=== Memory ===
Confirmed users
355

edits

Navigation menu