2015-08-30 69 views
0

我想爲Android構建Firefox。 我跟着這裏的所有指令:https://wiki.mozilla.org/Mobile/Fennec/Android#Android_NDK_and_SDK_version_notes降級android支持庫,建設mozilla fennec

我跑./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和支持庫的版本是不同的。但我無法將我的支持庫降級到早期版本。 任何人都可以建議我一種方法來做到這一點?

回答

0

正如MDN page報道(見「2015年8月26日‘支持庫23和22/23 SDK’注),here's如何降級庫中的郵件列表交流。

總之,下載並提取this zip到$ ANDROID_HOME/extras/android /。我建議先執行備份。