Confirmed users
300
edits
No edit summary |
|||
| Line 182: | Line 182: | ||
You will need SDK version at least 16. | You will need SDK version at least 16. | ||
Note that build fails on SDK r22 as of 5/20/13 ([https://bugzilla.mozilla.org/show_bug.cgi?id=874132 bug 874132]). Updating the "Android SDK Tools" with the <sdk>/tools/android utility on a downloaded SDK of any version will have the same effect. Therefore, when downloading an SDK, install one "Android x.x.x" package, "Tools/Android SDK Platform-tools", and "Extras/Android Support Library". Note that the API number from the installed package must be the platform pointed to by the .mozconfig (i.e. "Android 4.2.2 (API 17)" needs "ac_add_options --with-android-sdk="$HOME/android-sdk-macosx/platforms/android-17"). | Note that build fails on SDK r22 as of 5/20/13 ([https://bugzilla.mozilla.org/show_bug.cgi?id=874132 bug 874132]). Updating the "Android SDK Tools" with the <sdk>/tools/android utility on a downloaded SDK of any version will have the same effect. Therefore, when downloading an SDK, install one "Android x.x.x" package, "Tools/Android SDK Platform-tools", and "Extras/Android Support Library". Note that the API number from the installed package must be the platform pointed to by the .mozconfig (i.e. "Android 4.2.2 (API 17)" needs "ac_add_options --with-android-sdk="$HOME/android-sdk-macosx/platforms/android-17"). | ||
If you already have the most recent SDK installed (>= r22), you can still build with it with a few tricks. | |||
# Download r20 of the SDK from http://dl.google.com/android/android-sdk_r20.0.3-linux.tgz | |||
# Copy the "apkbuilder" binary from the tools directory to the tools directory of your already installed SDK. | |||
# In your installed SDK, make a symlink from "platform-tools/aapt" to "../build-tools/17.0.0/aapt" (or whatever the build tools version is; 17.0.0 at the time of this writing) | |||
# In your installed SDK, make another symlink from "platform-tools/dx" to "../build-tools/17.0.0/dx" (or whatever the build tools version is; 17.0.0 at the time of this writing) | |||
That should be all, but be aware that in the future, things will probably break again. Hopefully [https://bugzilla.mozilla.org/show_bug.cgi?id=874132 bug 874132] will be resolved by then! | |||
wget http://dl.google.com/android/android-sdk_r20.0.3-macosx.zip | wget http://dl.google.com/android/android-sdk_r20.0.3-macosx.zip | ||