Facebook SDK: Failed to re-package resources

Hello, I am trying to implement Facebook sdk into my unity project, however every time I try to build for android, I get following error:

CommandInvokationFailure: Failed to re-package resources.

After viewing not truncated error log, I found this:

So I guess the main reason would be this part:

I am using Unity 2017.3, latest facebook unity sdk, plus admob ads

However I can not understand it, since I have set App id in facebook sdk settings within unity.

Any help would be appreciated, thanks

Have you tried to build using the gradle build system? Internal build system does not support dynamic references in the manifest.

I also facing this problem with latest facebook sdk. Do you have solution.? I trtied that JuliusM says. But it’s eating my too much time.

removed old Facebook SDK and updated to latest one (facebook-unity-sdk-7.12.1)

Got the freaking CommandInvokationFailure: Failed to re-package resources error.

N-E-V-E-R update any plugin unless you really have to. This is a developer 101 advice and after 5 years I’m still falling at it. If it works, it works, don’t touch it.

Also, this Android build thing is just a mess. Duplicated DLL’s, duplicated references, plugins overwriting the Manifest making it a mess etc.

For someone unexperienced in Android it’s just a headache.

Well, enought ranting. I used the new gradle build system and it works. Why? Only god knows… no time for that.

3 Likes

I have spent 2 days in office trying to make that thing work…
Only using the gradle build you have a chance…

The Android build is a NIGHTMARE!

I have this problem too … but there is no solution anywhere :frowning:

can anyone share the solution if they know it?

We managed to have Android build using the following guide

I hope this helps…

Unfortunately I could not solve the problem :frowning: Thank you for your interest…

and thats how one should reply
perfect