I understand what is your feel. In the past I got many problems in linux environment, and I wonder to give up. I try find solution bit by bit. Every problem will force you to study more and more serious about what are you doing. “Life is not easy”. Unconsciously, you will be better programmer than programmer who use Windows environment. good luck 
I know why there was problem with ant, cause when I purged openjdk, ant also was affected. Now I installed everything right, also with latest version of ant.
BUILD FAILED
/home/user/android-sdk/tools/ant/build.xml:597: The following error occurred while executing this line:
/home/user/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/user/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
This is strange, I am using openjdk-8 and everything is ok here, but I am using Eclipse.
May be this will clarify something:
$ cocos run -s ~/CocosProjects/MyGame -p android -Xlint:unchecked
Building mode: debug
Using Eclipse project : /home/user/CocosProjects/MyGame/proj.android
Android platform not specified, searching a default one...
running: '/home/user/android-sdk/tools/android update project -t android-23 -p /home/user/CocosProjects/MyGame/proj.android'
Updated project.properties
Updated local.properties
Updated file /home/user/CocosProjects/MyGame/proj.android/proguard-project.txt
Android platform not specified, searching a default one...
running: '/home/user/android-sdk/tools/android update lib-project -p /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java -t android-23'
Updated project.properties
Updated local.properties
Updated file /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/proguard-project.txt
Building native...
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: '/home/user/android-ndk-r10e/ndk-build -C /home/user/CocosProjects/MyGame/proj.android -j2 NDK_MODULE_PATH=/home/user/CocosProjects/MyGame/proj.android/../cocos2d:/home/user/CocosProjects/MyGame/proj.android/../cocos2d/cocos:/home/user/CocosProjects/MyGame/proj.android/../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'
Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory `/home/user/CocosProjects/MyGame/proj.android'
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] StaticLibrary : libcocostudio.a
[armeabi] StaticLibrary : libcocosbuilder.a
[armeabi] StaticLibrary : libcocos3d.a
[armeabi] StaticLibrary : libspine.a
[armeabi] StaticLibrary : libui.a
[armeabi] StaticLibrary : libcocosdenshion.a
[armeabi] StaticLibrary : flatbuffers.a
[armeabi] StaticLibrary : libextension.a
[armeabi] StaticLibrary : libaudioengine.a
[armeabi] StaticLibrary : libbox2d.a
[armeabi] StaticLibrary : libnetwork.a
[armeabi] StaticLibrary : libcocos2dxinternal.a
[armeabi] StaticLibrary : librecast.a
[armeabi] StaticLibrary : libbullet.a
[armeabi] StaticLibrary : libcocos2dandroid.a
[armeabi] StaticLibrary : libcpufeatures.a
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] SharedLibrary : libcocos2dcpp.so
[armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so
make: Leaving directory `/home/user/CocosProjects/MyGame/proj.android'
Building apk...
running: '/opt/apache-ant/bin/ant clean debug -f /home/user/CocosProjects/MyGame/proj.android/build.xml -Dsdk.dir=/home/user/android-sdk'
Buildfile: /home/user/CocosProjects/MyGame/proj.android/build.xml
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/user/android-sdk
-setup:
[echo] Project Name: MyGame
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory /home/user/CocosProjects/MyGame/proj.android/bin
[delete] Deleting directory /home/user/CocosProjects/MyGame/proj.android/gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:
nodeps:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/user/android-sdk
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-pre-clean:
clean:
[delete] Deleting directory /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin
[delete] Deleting directory /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/gen
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/user/android-sdk
-setup:
[echo] Project Name: MyGame
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
[echo] Resolving Build Target for MyGame...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin/res
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin/rsObj
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin/rsLibs
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/gen
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin/classes
[mkdir] Created dir: /home/user/CocosProjects/MyGame/proj.android/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for MyGame...
[dependency] Ordered libraries:
[dependency] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/user/android-sdk
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
[echo] Resolving Build Target for cocos2dxandroid...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/res
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/rsObj
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/rsLibs
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/gen
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/classes
[mkdir] Created dir: /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 29 source files to /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/bin/classes
[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] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:9: error: package org.apache.http does not exist
[javac] import org.apache.http.Header;
[javac] ^
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:10: error: package org.apache.http.message does not exist
[javac] import org.apache.http.message.BasicHeader;
[javac] ^
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:47: error: cannot find symbol
[javac] public void onFailure(int i, Header[] headers, byte[] errorResponse, Throwable throwable) {
[javac] ^
[javac] symbol: class Header
[javac] location: class DataTaskHandler
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:57: error: cannot find symbol
[javac] public void onSuccess(int i, Header[] headers, byte[] binaryData) {
[javac] ^
[javac] symbol: class Header
[javac] location: class DataTaskHandler
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:109: error: cannot find symbol
[javac] public void onFailure(int i, Header[] headers, Throwable throwable, File file) {
[javac] ^
[javac] symbol: class Header
[javac] location: class FileTaskHandler
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:119: error: cannot find symbol
[javac] public void onSuccess(int i, Header[] headers, File file) {
[javac] ^
[javac] symbol: class Header
[javac] location: class FileTaskHandler
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:255: error: cannot find symbol
[javac] Header[] headers = null;
[javac] ^
[javac] symbol: class Header
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:259: error: cannot find symbol
[javac] List<Header> list = new ArrayList<Header>();
[javac] ^
[javac] symbol: class Header
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:259: error: cannot find symbol
[javac] List<Header> list = new ArrayList<Header>();
[javac] ^
[javac] symbol: class Header
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:260: error: cannot find symbol
[javac] list.add(new BasicHeader("Range", "bytes=" + fileLen + "-"));
[javac] ^
[javac] symbol: class BasicHeader
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:261: error: cannot find symbol
[javac] headers = list.toArray(new Header[list.size()]);
[javac] ^
[javac] symbol: class Header
[javac] /home/user/CocosProjects/MyGame/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java:263: error: cannot access HttpEntity
[javac] task.handle = downloader._httpClient.get(Cocos2dxHelper.getActivity(), url, headers, null, task.handler);
[javac] ^
[javac] class file for org.apache.http.HttpEntity not found
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: /home/user/CocosProjects/MyGame/cocos2d/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] 3 warnings
BUILD FAILED
/home/user/android-sdk/tools/ant/build.xml:597: The following error occurred while executing this line:
/home/user/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/user/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 7 seconds
Error running command, return code: 1.
Also I tried to do it through AndoridSutdio with Android API 21:
02-01 16:52:56.420 2321-2321/com.MyCompany.MyGame I/art: Not late-enabling -Xcheck:jni (already on)
02-01 16:52:56.540 2321-2321/com.MyCompany.MyGame D/AndroidRuntime: Shutting down VM
02-01 16:52:56.540 2321-2321/com.MyCompany.MyGame E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.MyCompany.MyGame, PID: 2321
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.MyCompany.MyGame-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]] couldn't find "libcocos2dcpp.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:989)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:263)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-01 16:54:33.660 2321-2321/com.MyCompany.MyGame I/Process: Sending signal. PID: 2321 SIG: 9
Your android SDK are outdated, you are using Build Tools: 23.0.2, try update your android SDK, this issue have a similiar problem with this build tools version:
http://discuss.cocos2d-x.org/t/cannot-build-android-for-base-project/22045
I am using Build Tools 24.4.1.
Sorry, your build tools are right tools!
What android sdk versions do you have?
What system you are using ?
Ubuntu Studio.
Is your OS 64 bit ? (I have android-sdk_r24.4.1)
Yes.
You have android sdk 10?
No, is it what you use ? Give me a link, please.
On your android sdk manager. Comparing your terminal with mine, the build call android API 23 and after API 10. Try this.
Tried:
Can't find right Android-platform for project : '/home/user/CocosProjects/MyGame/proj.android'. The Android-platform should be equal/larger than 23.
On my AndroidManifest is verion 9 too. Sorry about my mistakes, do you want to see my teminal? Maybe comparing we could solve this.
One minute, something happened with my JDK.
I reinstalled JAVA (openjdk 7 now) and ANT - the same problem with build.xml
Ok, give me your terminal’s output.
surf@surf:~$ cocos run -s '/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game' -p android
Building mode: debug
Using Eclipse project : /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android
Android platform not specified, searching a default one...
running: '/home/surf/Projects/android/tools/android update project -t android-23 -p /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android'
Updated project.properties
Updated local.properties
Updated file /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Android platform not specified, searching a default one...
running: '/home/surf/Projects/android/tools/android update lib-project -p /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java -t android-10'
Updated project.properties
Updated local.properties
Updated file /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/proguard-project.txt
Building native...
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: '/home/surf/Projects/android/android-ndk-r10e/ndk-build -C /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android -j8 NDK_MODULE_PATH=/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/../cocos2d:/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/../cocos2d/cocos:/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'
Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory `/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android'
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] StaticLibrary : libcocostudio.a
[armeabi] StaticLibrary : libcocosbuilder.a
[armeabi] StaticLibrary : libcocos3d.a
[armeabi] StaticLibrary : libspine.a
[armeabi] StaticLibrary : libcocosdenshion.a
[armeabi] StaticLibrary : flatbuffers.a
[armeabi] StaticLibrary : libui.a
[armeabi] StaticLibrary : libextension.a
[armeabi] StaticLibrary : libaudioengine.a
[armeabi] StaticLibrary : libbox2d.a
[armeabi] StaticLibrary : libnetwork.a
[armeabi] StaticLibrary : libcocos2dxinternal.a
[armeabi] StaticLibrary : librecast.a
[armeabi] StaticLibrary : libcocos2dandroid.a
[armeabi] StaticLibrary : libbullet.a
[armeabi] StaticLibrary : libcpufeatures.a
[armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] SharedLibrary : libcocos2dcpp.so
[armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so
make: Leaving directory `/home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android'
Building apk...
running: '/usr/share/ant/bin/ant clean debug -f /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/build.xml -Dsdk.dir=/home/surf/Projects/android'
Buildfile: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/build.xml
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/surf/Projects/android
-setup:
[echo] Project Name: Game
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin
[delete] Deleting directory /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:
nodeps:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/surf/Projects/android
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-pre-clean:
clean:
[delete] Deleting directory /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin
[delete] Deleting directory /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/gen
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/surf/Projects/android
-setup:
[echo] Project Name: Game
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
[echo] Resolving Build Target for Game...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/rsObj
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/rsLibs
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/gen
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/classes
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for Game...
[dependency] Ordered libraries:
[dependency] /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /home/surf/Projects/android
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
[echo] Resolving Build Target for cocos2dxandroid...
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/res
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/rsObj
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/rsLibs
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/gen
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/classes
[mkdir] Created dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 29 source files to /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/classes
[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] Note: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDownloader.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/res
[crunch] To destination dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Creating new property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 3 source files to /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/classes
[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] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/classes
[dex] input: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/classes.jar
[dex] input: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/libs/android-async-http-1.4.8.jar
[dex] Pre-Dexing /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/bin/classes.jar -> classes-f51b9928ee54edf0d016bef39cb4d93c.jar
[dex] Pre-Dexing /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/cocos2d/cocos/platform/android/java/libs/android-async-http-1.4.8.jar -> android-async-http-1.4.8-3a9f76da9ce33b7bb088c3267a64f37d.jar
[dex] Converting compiled files and external libraries into /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/classes.dex...
[dx] Merged dex #1 (6 defs/1.6KiB)
[dx] Merged dex #2 (62 defs/105.3KiB)
[dx] Merged dex #3 (122 defs/131.5KiB)
[dx] Result is 190 defs/284.2KiB. Took 0.2s
-crunch:
[crunch] Crunching PNG Files in source dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res
[crunch] To destination dir: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res
[crunch] Processing image to cache: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-hdpi/icon.png => /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-hdpi/icon.png
[crunch] (processed image to cache entry /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-hdpi/icon.png: 67% size of source)
[crunch] Processing image to cache: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-ldpi/icon.png => /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-ldpi/icon.png
[crunch] (processed image to cache entry /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-ldpi/icon.png: 0% size of source)
[crunch] Processing image to cache: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-mdpi/icon.png => /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-mdpi/icon.png
[crunch] (processed image to cache entry /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/res/drawable-mdpi/icon.png: 53% size of source)
[crunch] Crunched 3 PNG files to update cache
[crunch] /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-hdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[crunch] /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[crunch] /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/res/drawable-mdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
-package-resources:
[aapt] Creating full resource package...
[aapt] (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Game-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/Game-debug.apk
[propertyfile] Creating new property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/build.prop
[propertyfile] Updating property file: /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/proj.android/bin/build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 7 seconds
Move apk to /home/surf/Projects/cocos2d-x/cocos2d-x-3.10/projects/Game/bin/debug/android
Build succeed.
Deploying mode: debug
Installing on device
running: '/home/surf/Projects/android/platform-tools/adb uninstall com.example.game'