Mobile/Fennec/Android: Difference between revisions

Line 148: Line 148:
===== Install Android NDK =====
===== Install Android NDK =====


Download and extract the [http://developer.android.com/sdk/ndk/ Android NDK]. The NDKs with 64-bit toolchains (x86_64) are recommended because linking Firefox requires a lot of memory. The automated builders currently use version r8e.
Download and extract the [http://developer.android.com/sdk/ndk/ Android NDK]. The NDKs with 64-bit toolchains (x86_64) are recommended because linking Firefox requires a lot of memory. The supported NDK version right now is <b>r8e</b>. Installing newer versions <i>will</i> break your builds (see {{bug|951968}} for example).


  wget http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
  wget http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
Line 170: Line 170:
'''The above update commands will update your Android SDK tools to a version that does not work to build Firefox. Do not run them -- use the GUI updater instead:'''-->
'''The above update commands will update your Android SDK tools to a version that does not work to build Firefox. Do not run them -- use the GUI updater instead:'''-->


You will need to install support for Android API version at least 16. Run the Android SDK GUI updater:
You will need to install support for Android API version 16. Run the Android SDK GUI updater:


   ./adt-bundle-mac/sdk/tools/android
   ./adt-bundle-mac/sdk/tools/android


You must uncheck version 18 or higher of "Android SDK Build-tools" and check '''version 17''' instead. You will also need the "Android Support Library" under Extras.
You must uncheck version 17 or higher of "Android SDK Build-tools" and check '''version 16''' instead. You will also need the "Android Support Library" under Extras.


You will probably want to add the SDK's "tools", "build-tools", and "platform-tools" directories to the PATH environment variable in your shell, so that you can run [http://developer.android.com/guide/developing/tools/adb.html adb] and other tools easily. For example, if you installed the SDK in $HOME, you could add the following line to the end of your .bashrc:
You will probably want to add the SDK's "tools", "build-tools", and "platform-tools" directories to the PATH environment variable in your shell, so that you can run [http://developer.android.com/guide/developing/tools/adb.html adb] and other tools easily. For example, if you installed the SDK in $HOME, you could add the following line to the end of your .bashrc:
Confirmed users
657

edits