当我创建一个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