我有
compile 'com.facebook.android:facebook-android-sdk:4.16.0'
我的清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AutoTheme"
tools:replace="android:theme">
如何解决编译错误:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:69:13-72
is also present at [com.facebook.android:facebook-android-sdk:4.16.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:66:9-70:47 to override.
原文由 NickUnuchek 发布,翻译遵循 CC BY-SA 4.0 许可协议
xmlns:tools="http://schemas.android.com/tools"
到<manifest>
AndroidManifest 中的元素2)添加
tools:replace="android:theme"
到(facebook活动)<activity>
这是我的清单文件