當我創建一個Android庫,默認情況下它會給我的清單文件下面圖書館清單中的`android:supportsRtl =「true」`必不可少?這是造成錯誤有時
<application android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"/>
後它作爲Bintray庫之後和被別人利用,才意識到如果應用程序,包括該庫具有以下在其清單
android:supportsRtl="false"
將發佈如下錯誤gradle這個同步或編譯期間。
Error:Execution failed for task ':app:processProductionDebugManifest'.
> Manifest merger failed : Attribute [email protected] value=(false) from AndroidManifest.xml:23:9-36
is also present at [com.mylibrarypackage:mylibrary:1.0.0] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:supportsRtl"' to <application> element at AndroidManifest.xml:18:5-67:19 to override.
爲了解決這個問題,我想我需要從我的媒體庫清單中移除android:supportsRtl="true"
。
只是想知道爲什麼Android有這個默認的庫清單?如果我從我的書庫清單中刪除android:supportsRtl="true"
,會不會有任何潛在的問題?
謝謝!我有問題在http://stackoverflow.com/questions/39178543/can-toolsreplace-androidsupportsrtl-go-along-with-toolsignore-allowback。希望你能檢查出來,如果你知道這個答案... – Elye