Facebook SDK Android error "CommandInvokationFailure: Failed to re-package resources."

Hi.
When compiling the game, an error is issued. I tried everything I found on the Internet by this error. Only “Gradle build system” works, but in this mode the icon is not displayed. Help me please. I will attach logs below.

CommandInvokationFailure: Failed to re-package resources.
F: \ Androide \ Android \ Android SDK \ sdk \ build-tools \ 28.0.3 \ aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” - S “res” -I “F: / Android / Android / Android SDK / sdk \ platforms \ android-28 \ android.jar” -F bin / resources.ap_ - extra-packages

https://drive.google.com/open?id=1-RdRuut2zEr8DGtQWGF2whEKFXpmEDZJ - Full text of the error.

3896758–331630–Editor.txt (704 KB)

The newer Facebook SDKs for Unity require using Gradle as the build system, so you must use that.
Also, Gradle is the way Android apps are actually being built, so it’s a good move to start using this option instead of the “internal” system (that is going to disappear in the future).

Can you describe what is exactly the issue when building using Gradle ?

1 Like

Thanks, I will use Gradle. My version of Unity was with an error in the Gradle build, I updated Unity and it all worked.

ICON OVERRIDE FOR ANDROID IS NOT APPLIED IN CASE OF GRADLE BUILD
https://issuetracker.unity3d.com/issues/android-icon-override-for-android-is-not-applied-in-case-of-gradle-build

hello ,
I got error in unity using facebook and photon plugin. I am using facebook 7.13.0 sdk and photon multiplayer asset.And my Unity3d version is 2018.2.17f1.

Also i am trying to make apk Gradle or internal build system.

4674509--440018--Screen Shot 2019-06-22 at 11.04.14 AM.png
4674509--440021--Screen Shot 2019-06-22 at 11.04.33 AM.png

Share the complete error message