Varun M
Varun M

Reputation: 11

Error compiling cocos2d-x v3.10 project

I'm trying to compile a new project on cmd using cocos2d-x v3.10, but the build is failing and I'm getting the following error: 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.

I'm using the following:
JDK: 1.8.0_73
Android api: 19
NDK: r9
Ant: 1.9.6
Python: 2.7.11

Upvotes: 1

Views: 309

Answers (1)

Alanmars
Alanmars

Reputation: 1277

I think ._android-async-http-1.4.8.jar is a hidden file or the file is corrupted.

For case one, just rename it to android-async-http-1.4.8.jar and refer it to again.

For case two, just download a new one.

Upvotes: 0

Related Questions