Getting :processDebugManifest FAILED issue


#1

:processDebugManifest/Workspace/DEMo/iDDNA2016/Source/platforms/android/AndroidManifest.xml:14:184-243 Error:
Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:14:184-243
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 element at AndroidManifest.xml:14:9-246 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

:processDebugManifest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugManifest’.

Manifest merger failed : Attribute activity#com.facebook.FacebookActivity@theme value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:14:184-243
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 element at AndroidManifest.xml:14:9-246 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 15.324 secs
Error: Error code 1 for command: /Workspace/DEMo/iDDNA2016/Source/platforms/android/gradlew with args: cdvBuildDebug,-b,/Workspace/DEMo/iDDNA2016/Source/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true


#2

I ran into this issue the fix was to add some attributes to a couple of the nodes in the AndroidManifest.xml file (platforms/android/AndroidManifest.xml):

  • Add xmlns:tools="http://schemas.android.com/tools" to the <manifest> node
  • Add tools:replace="android:theme" to the <activity> node (the one with android:name="com.facebook.FacebookActivity")

You might also need to shuffle around the <activity> nodes.

Good luck!


#3

Thanks @russell07. Your solution work for me…:slight_smile: