降级 android 支持库,构建 mozilla fennec

downgrade android support library , Building mozilla fennec

我正在尝试为 Android 构建 Firefox。 我遵循了这里的所有说明:https://wiki.mozilla.org/Mobile/Fennec/Android#Android_NDK_and_SDK_version_notes

I 运行 ./mach Build,终端显示如下错误:

193:09.18 Found 1 drawables in '/home/himani/mozilla-central/mobile/android/base/resources' for 'webmaker': ['drawable-xhdpi/suggestedsites_webmaker.png']
193:09.18 Found 1 drawables in '/home/himani/mozilla-central/mobile/android/base/resources' for 'restricted_mozilla': ['drawable-xhdpi/suggestedsites_restricted_mozilla.png']
193:09.19 /home/himani/mozilla-central/obj-arm-linux-androideabi/mobile/android/base/res/raw/suggestedsites.json updated
193:09.45 Read 3 engines: [u'Google', u'Yahoo', u'Bing']
193:09.45 Default engine is 'Google'.
193:09.45 Region 'US': Read 3 engines: [u'Yahoo', u'Google', u'Bing']
193:09.45 Region 'US': Default engine is 'Yahoo'.
193:09.46 /home/himani/mozilla-central/obj-arm-linux-androideabi/mobile/android/base/res/raw/browsersearch.json updated
193:10.08 gecko-thirdparty.jar
193:10.49 sync-thirdparty.jar
193:13.66 Note: /home/himani/mozilla-central/mobile/android/base/SysInfo.java uses or overrides a deprecated API.
193:13.66 Note: Recompile with -Xlint:deprecation for details.
193:27.64 Note: Some input files use or override a deprecated API.
193:27.64 Note: Recompile with -Xlint:deprecation for details.
193:27.65 Note: Some input files use unchecked or unsafe operations.
193:27.65 Note: Recompile with -Xlint:unchecked for details.
193:30.13 geckoview_resources.zip
193:31.97 gecko-mozglue.jar
193:33.38     (skipping file '.mkdir.done' due to ANDROID_AAPT_IGNORE pattern '.*')
193:33.38     (skipping file '.mkdir.done' due to ANDROID_AAPT_IGNORE pattern '.*')
193:44.11 /home/himani/.mozbuild/android-sdk-linux/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'.
193:44.11 
193:44.11 /home/himani/.mozbuild/android-sdk-linux/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'.
193:44.11 
193:44.20 make[5]: *** [.aapt.deps] Error 1
193:44.20 make[5]: *** Deleting file `.aapt.deps'
193:44.20 make[5]: *** Waiting for unfinished jobs....
193:47.91 Note: Some input files use or override a deprecated API.
193:47.92 Note: Recompile with -Xlint:deprecation for details.
193:47.92 Note: Some input files use unchecked or unsafe operations.
193:47.92 Note: Recompile with -Xlint:unchecked for details.
193:48.83 make[4]: *** [mobile/android/base/libs] Error 2
193:48.83 make[3]: *** [libs] Error 2
193:48.83 make[2]: *** [default] Error 2
193:48.84 make[1]: *** [realbuild] Error 2
193:48.84 make: *** [build] Error 2

现在,我认为问题的出现是因为 Android 构建 SDK 和支持库版本不同。但是我无法将我的支持库降级到早期版本。 谁能建议我这样做的方法?

正如 MDN page (see the "2015/08/26 "Support library 23 and SDK 22/23" note), here's 邮件列表中关于如何降级库的交流所报道的那样。

简而言之,下载 this zip 并将其解压到 $ANDROID_HOME/extras/android/ 中。我建议先进行备份。