|
|
Line 148: |
Line 148: |
| === Android NDK and SDK version notes === | | === Android NDK and SDK version notes === |
|
| |
|
| If your build fails because you're missing one of the Android/Google requirements, you can manually install a version by running the Android SDK manager, located at <tt>$ANDROID_SDK/tools/android</tt>.
| | The Fennec build system requires the following versions: |
| | |
| Members of the Fennec community are successfully building Fennec with:
| |
|
| |
|
| * Android SDK Platform '''Android 5.1.1 (API 22)''' | | * Android SDK Platform '''Android 5.1.1 (API 22)''' |
| * SDK Build Tools '''22.0.1''' | | * SDK Build Tools '''22.0.1''' or later |
| * SDK Platform Tools '''22''' | | * SDK Platform Tools '''22.0.1''' or later |
| * Android SDK Tools '''24.3''' | | * Android SDK Tools '''22.0.1''' or later |
| * Android Support Repository '''15''' | | * Android Support Repository '''20''' or later |
| * Android Support Library '''22.2'''
| | * Google Repository '''22''' or later |
| * Google Play Services '''25'''
| |
| * Google Repository '''19''' | |
| | |
| '''2015/08/26 "Support library 23 and SDK 22/23"''': Currently the latest support library version available is 23. This version requires you to build with SDK 23 but Fennec does not build with that SDK version just yet. You can find more about that [https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-August/001399.html in this mailing list posting]. If you are seeing the following build error then you will need to [https://mobile.etherpad.mozilla.org/109 manually downgrade your support library to version 22]:
| |
| | |
| /usr/local/opt/android-sdk/extras/android/support/v7/appcompat/res/values-v23/styles_base.xml:20: error:
| |
| Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
| |
| /usr/local/opt/android-sdk/extras/android/support/v7/appcompat/res/values-v23/styles_base_text.xml:19: error:
| |
| Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
| |
| | |
| | |
| "Google Play Services" is listed under Extras by the ''android'' package manager.
| |
| | |
| You should ensure that the Support Library and SDK versions match. If you update the Support Library but don't switch to a later SDK, you'll get errors that mention a newer version than your SDK, like this:
| |
| | |
| Warning: android.support.v4.view.accessibility
| |
| .AccessibilityNodeInfoCompatApi22: can't find referenced method
| |
| 'void setTraversalAfter(android.view.View,int)' in class
| |
| android.view.accessibility.AccessibilityNodeInfo
| |
| | |
| In the event that the NDK and SDK versions listed here are out of date, you can always find the [http://hg.mozilla.org/mozilla-central/annotate/tip/mobile/android/config/mozconfigs/common canonical version numbers that Mozilla uses to build Fennec in automation]. Look for the following variables:
| |
|
| |
|
| * ANDROID_NDK_VERSION
| | If your build fails because you're missing one of the Android or Google requirements, your first step should be to run the <tt>mach bootstrap</tt>. If you don't want to run the bootstrapper, you can manually install by running the Android SDK manager: try <tt>mach android</tt>, or <tt>$ANDROID_SDK/tools/android</tt>. |
| * ANDROID_NDK_VERSION_32BIT
| |
| * ANDROID_SDK_VERSION
| |
|
| |
|
| {{bug|1108782}} tracks listing and enforcing these version requirements in the source code. | | {{bug|1207680}} tracks listing these version requirements in one place in the source code. |
|
| |
|
| == Learn more == | | == Learn more == |