Ine*_*esM 7 android facebook unity-game-engine facebook-unity-sdk
我在使用facebook unity sdk为android编译统一时遇到此错误(如果我删除它编译好的sdk):
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()
Run Code Online (Sandbox Code Playgroud)
我不明白为什么会这样.我在OSX 10.9.5上运行Unity 4.6,我安装了最新版本的Java以及android skd.
谁能帮我?
小智 0
从昨天开始,经过整个上午的研究后,我遇到了同样的错误。我发现这是由最新的 Android API 版本 21 引起的。在我通过删除 SDK 管理器中的所有 API 版本 21 包恢复到 Android API 版本 20 后,一切恢复正常。希望能帮助到你。