Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Cocos2D-x C++ Android Build Problems

$
0
0

@wFc wrote:

Hello, I'm trying to build .apk file but so far no results as I'm getting errors and have no idea how to fix it. Maybe you guys could help me?
I'm using:
*Cocos2D-x3.10
*Apache-Ant-1.9.6
*Python 2.7.5
*java version "1.6.0_45"

This is the command I use:
python android-build.py -p 21 cpp-tests

This is the errors I'm getting (Android Terminal):

  [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\Cocos\Cocos2d-x\cocos2d-x-3.10\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxDownloader.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 12 errors
    [javac] 100 warnings

BUILD FAILED
C:\Users\Home-PC\AppData\Local\Android\sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
C:\Users\Home-PC\AppData\Local\Android\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\Users\Home-PC\AppData\Local\Android\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Error line from build.xml file:

Line 601: antfile="build.xml">
Line 720: <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
Line 734: fork="${need.javac.fork}">

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2748

Trending Articles