编译cocos2d-x v3.10项目时出错

时间:2016-03-16 14:29:37

标签: android cmd cocos2d-x cocos2d-x-3.0

我尝试使用cocos2d-x v3.10在cmd上编译新项目,但构建失败并且我收到以下错误: The output as seen on cmd.

-pre-compile:

-compile:
    [javac] Compiling 29 source files to D:\Varun\MyApp\MyApp\cocos2d\cocos\platform
\android\java\bin\classes
    [javac] error: error reading D:\Varun\MyApp\MyApp\cocos2d\cocos\platform\android
\java\libs\._android-async-http-1.4.8.jar; error in opening zip file
    [javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
    [javac] 1 error
    [javac] 3 warnings

BUILD FAILED
D:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:601: The following
 error occurred while executing this line:
D:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:720: The following
 error occurred while executing this line:
D:\adt-bundle-windows-x86_64-20140321\sdk\tools\ant\build.xml:734: Compile faile
d; see the compiler error output for details.

Total time: 2 seconds
Error running command, return code: 1.

我使用以下内容:
JDK:1.8.0_73
Android api:19
NDK:r9
Ant:1.9.6
Python:2.7.11

1 个答案:

答案 0 :(得分:0)

我认为._android-async-http-1.4.8.jar是隐藏文件或文件已损坏。

对于第一种情况,只需将其重命名为android-async-http-1.4.8.jar并再次引用它。

对于案例二,只需下载一个新的。