Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Android编译时报错

$
0
0

@751985536 写道:

-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。

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>