Android编译时报错

kqin
Thu, 05 Jan 2017 10:53:55 +0000

-compile:
[javac] Compiling 27 source files to E:\gameswork\NewProject\sign\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes
[javac] E:\gameswork\NewProject\sign\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxAccelerometer.java:27: 无法访问 android.content.Context
[javac] 错误的类文件： android\content\Context.class(android\content:Context.class)
[javac] 类文件具有错误的版本 52.0，应为 50.0
[javac] 请删除该文件或确保该文件位于正确的类路径子目录中。
[javac] import android.content.Context;
[javac] ^

BUILD FAILED
C:\Users\wizlong\AppData\Local\Android\sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
C:\Users\wizlong\AppData\Local\Android\sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
C:\Users\wizlong\AppData\Local\Android\sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.

Total time: 2 seconds
执行命令出错，返回值：1。

阅读整个主题