降级android支持库,构建mozilla fennec

时间:2015-08-30 14:17:09

标签: android firefox mozilla fennec

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

我跑了./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和支持库版本不同。但我无法将我的支持库降级到早期版本。 谁能建议我这样做?

1 个答案:

答案 0 :(得分:0)

MDN page中所述(请参阅“2015/08/26”支持库23和SDK 22/23“注释),here's有关如何降级库的邮件列表交换。

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