Confirmed users
355
edits
Nalexander (talk | contribs) |
|||
| Line 7: | Line 7: | ||
== Pre-requisites == | == 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 [http://mxr.mozilla.org/mozilla-central/source/mobile/android/gradle/app/build.gradle gradle config files] also explicitly specify the version (e.g., SDK v21 and build tools v21.1.1), in order to decrease IntelliJ problems in detecting the right version of Android tools to use. See {{bug|1123013}} for details. | The [http://mxr.mozilla.org/mozilla-central/source/mobile/android/gradle/app/build.gradle gradle config files] also explicitly specify the version (e.g., SDK v21 and build tools v21.1.1), in order to decrease IntelliJ problems in detecting the right version of Android tools to use. See {{bug|1123013}} for details. | ||
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. | |||
=== Installing specific versions of the Android SDK and build tools === | |||
To list all Android packages, including those marked Obsolete, use: | |||
android list sdk --extended --all | |||
You should see entries like: | |||
id: 6 or "build-tools-21.1.1" | |||
Type: BuildTool | |||
Desc: Android SDK Build-tools, revision 21.1.1 (Obsolete) | |||
To install a particular version, use a command like the following: | |||
android update sdk --no-ui --filter "build-tools-21.1.1" | |||
== Quick start == | == Quick start == | ||