I'm getting this error when compiling unity for android using the facebook unity sdk (if I remove the sdk it compiles fine):
Failed to compile resources with the following parameters:
-bootclasspath "/Users/ines/Development/android-sdk-macosx/platforms/android-21/android.jar" -d "/Users/ines/Documents/Game/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "com/RPS/Game/R.java" "com/facebook/android/R.java"
warning: java/lang/Object.class(java/lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
1 warning
UnityEditor.HostView:OnGUI()
I cannot understand why this is happening. I'm running Unity 4.6 on OSX 10.9.5 and I have the latest version of Java installed as well as the android skd.
Can anyone help me?