- Home /
Can't build after importing facebok SDK 7.10.0
Project had plugins like - UnityIAP, - Admob - Google play games services. - Google Services Resolver
Try building results in Failed to re-package resources. Seems facebook is trying to acess some appcompat library. I tried to import that library but then it yields other errors. please I need directions, I am almost sure some of these plugins is conflicting with each other.
here is the complete error:
CommandInvokationFailure: Failed to re-package resources. C:\Users\WenPC\AppData\Local\Android\sdk\build-tools\26.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:\Users\WenPC\AppData\Local\Android\sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.facebook:com.facebook.android:com.android.vending.billing:com.google.unity.ads:com.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4 -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\common\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.10.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\GooglePlay\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-ads-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-auth-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-auth-base-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-base-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-basement-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-drive-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-games-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-gass-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-nearby-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\play-services-tasks-10.2.6\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-compat-25.2.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-core-ui-25.2.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-core-utils-25.2.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-fragment-25.2.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-media-compat-25.2.0\res" -S "C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\support-v4-25.2.0\res"
stderr[ C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\values\values.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
C:\Users\WenPC\Documents\UnityProjects\otgame\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\values\values.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
] stdout[ Configurations: (default)
Files: AndroidManifest.xml Src: () AndroidManifest.xml ..........
Answer by Shrykar · Sep 20, 2017 at 07:18 PM
@wenderRondonia, you are correct that your plugins are conflicting. The error points you to this "CommandInvokationFailure: Failed to re-package resources. C:\Users\WenPC\AppData\Local\Android\sdk\build-tools\26.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "
GPGS and FB android manifests will always conflict, google is your friend here and will tell you exactly how to fix it. I don't remember off the top of my head but can give more help if you run into further trouble.
Answer by Kitos14 · Sep 27, 2017 at 03:23 PM
Did u found the solution?
All he has to do is remove conflicts from the fb android manifest.