我有一个多功能即时应用程序设置,当我尝试查看应用程序的合并清单时,我看到了以下内容:
Error: Attribute provider#com.crashlytics.android.CrashlyticsInitProvider@authorities
value=(com.happyapp.app.crashlyticsinitprovider) from AndroidManifest.xml:14:13-75 is also present
at AndroidManifest.xml:40:87-161 value=(com.happyapp.app.app.crashlyticsinitprovider). Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:12:9-16:39 to override. app main manifest (this file), line 13我已经寻找了多个地方,但没有找到任何方法来解决这个问题。我可以遵循这个建议,但是在清单中没有提到要修复的行。
这是已安装的应用程序清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.happyapp.app" />发布于 2018-02-21 01:54:46
我的同事通过将以下元素添加到已安装的apk AndroidManifest.xml,解决了此问题
<application>
<provider
android:name="com.crashlytics.android.CrashlyticsInitProvider"
android:authorities="com.happy.happyapp.happyapp.crashlyticsinitprovider"
tools:replace="android:authorities" />
</application>https://stackoverflow.com/questions/48777923
复制相似问题