【发布时间】:2017-01-03 20:41:44
【问题描述】:
我正在使用一个在其清单中包含以下内容的库。
<application android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"/>
但是,作为我用来包含库的应用程序,与设置相反
<application android:allowBackup="false"
android:label="@string/app_name"
android:supportsRtl="false"/>
因此会出现像Is `android:supportsRtl="true"` in the Library Manifest essential? It is causing error sometimes这样的合并错误
要解决这个问题,我们只需在 Manifest 应用程序中添加以下内容。
tools:replace="android:supportsRtl"
和
tools:replace="android:allowBackup"
但是,添加两个tools:replace 会在编译时出错。我怎么能把这两个tools:replace结合起来?
我尝试了以下方法,但它不起作用。
tools:replace="android:supportsRtl|android:allowBackup"
【问题讨论】:
-
用逗号工具试试:replace="android:supportsRtl,android:allowBackup"