Guys, I just downloaded the latest Facebook SDK, the latest Android SDK and the latest Unity (4.3).
When I try to build my game, just to see the facebook example it gives me the following error:
Error building Player: Win32Exception:
ApplicationName=‘C:\Program Files (x86)\Java\jre7\bin\javac.exe’,
CommandLine=‘-bootclasspath “E:/adt-bundle-windows/sdk/platforms/android-14\android.jar” -d
“E:\Unity Projects[project name]\Temp\StagingArea\bin\classes” -source 1.6 -target 1.6 -encoding ascii “com\facebook\android\R.java” “com\winter\bigbang\R.java”’,
CurrentDirectory=‘E:\Unity Projects[project name]\Temp\StagingArea\gen’
After I removed the facebook SDK, entirely, from this project it started compiling again.
Does anybody knows what do I have to do to fix this issue?
I reinstalled java, unity and android sdk several times with no success.
I had the same problem for iOS on my Mac so I guess that the Facebook SDK doesn’t support Unity 4.3 (yet)
I fixed the problem installing Unity 4.1.5f, it works even with the latest version of Facebook SDK. Now I wonder why this is happening?!
You need to update you android sdk and also the android platform tools to the latest one. You can goto this post to very that you are not in the same situation as I was in. Maybe this could Help.