- Home /
Unity Facebook SDK "failed to compile resources with the following parameters"
Hello, so I have a problem with the Facebook SDK. When I try to build the game I get 3 errors which are :
Failed to compile resources with the following parameters: -bootclasspath "C:/Users/Zanny/Documents/Android\platforms\android-25\android.jar" -d "C:\Users\Zanny\Documents\Bouncy ball\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "android\support\compat\R.java" "android\support\coreui\R.java" "android\support\coreutils\R.java" "android\support\customtabs\R.java" "android\support\fragment\R.java" "android\support\graphics\drawable\R.java" "android\support\graphics\drawable\animated\R.java" "android\support\mediacompat\R.java" "android\support\v4\R.java" "android\support\v7\appcompat\R.java" "android\support\v7\cardview\R.java" "com\facebook\R.java" "com\facebook\android\R.java" "com\zanny\Game\R.java" warning: [options] source value 1.6 is obsolete and will be removed in a future release
and
UnityException: Resource compilation failed! Failed to recompile android resource files. See the Console for details. UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message) UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuildPointToConsole (System.String title, System.String message)
and
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()
But if I don't use the facebook sdk it works. So what do I need to do to fix this problem, I tried a lot of things, still cannot get it to work!
I you are using an asset from assetstore try downloading again the SD$$anonymous$$ directly from facebook and update it
Answer by tonOnWu · Nov 13, 2017 at 08:21 PM
I am having a similar error. Did you solve it?
Yes, I am not sure but I think I downloaded an older version of java sdk, right now I am using 1.8.0, I think that solved my problem.