android – 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()

我不明白为什么会这样.我在OSX 10.9.5上运行Unity 4.6,我安装了最新版本的Java以及android skd.

谁能帮我?

解决方法

我从昨天开始和整个上午花在研究之后得到了同样的错误.我发现它是由最新的Android API版本21引起的.之后我通过删除SDK管理器中的所有API版本21软件包恢复到Android API版本20,一切恢复正常.希望能帮助到你.

相关文章

AdvserView.java package com.earen.viewflipper; import an...
ImageView的scaleType的属性有好几种,分别是matrix(默认)...
文章浏览阅读8.8k次,点赞9次,收藏20次。本文操作环境:win1...
文章浏览阅读1.2w次,点赞15次,收藏69次。实现目的:由main...
文章浏览阅读3.8w次。前言:最近在找Android上的全局代理软件...
文章浏览阅读2.5w次,点赞17次,收藏6次。创建项目后,运行项...