Facebook SDK v7.9.x doesn't merge manifests
The Facebook SDK for Unity v7.9.0/7.9.4 upgraded its internal Facebook Android SDK from 4.14 to 4.17. In version 4.16 of the SDK, the following change was made which has carried through all new versions:
- android:theme="@android:style/Theme.Translucent.NoTitleBar" />
+ android:theme="@style/com_facebook_activity_theme" />
Now when I build, I get the following error:
Error: [Temp\StagingArea\AndroidManifest-main.xml:27,...Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\AndroidManifest.xml:6] Trying to merge incompatible /manifest/application/activity[@name=com.facebook.FacebookActivity] element:
<activity
@android:name="com.facebook.FacebookActivity"
-- @android:theme="@android:style/Theme.Translucent.NoTitleBar">
<activity
@android:name="com.facebook.FacebookActivity"
++ @android:theme="@style/com_facebook_activity_theme">
Why was this change made and can someone change it back? I'm stuck now.
FYI, I am also using Stan's Assets Mobile Social Plugin v9.4/17.
I have just come across this problem myself and its been over 2 months with no answer? There must be some sort of solution to this.
I've just encountered the same problem. Have you got a fix? There's nothing at Stan's Assets to explain how to handle this.
Answer by jrsbarros · May 05, 2017 at 12:59 PM
Hi, I had the same problem and I fix it deleting all facebook package and Installing again. Unfortunately, I updated the Unity to 5.6 and when I build the game and try to log in through the apk on facebook the dialog crashes and I can't do that. I have already seen that are 2 ticket to fix it.
https://github.com/facebook/facebook-sdk-for-unity/issues/70 https://github.com/facebook/facebook-sdk-for-unity/issues/73
If you didn't update the Unity I suppose you may not to do it.
Answer by Carrmichaelll · Jul 12, 2017 at 06:13 AM
Hi, please how did you solve this issue, i'm currently having the same problem