输入 ant debug后 输出以下提示。。。。 打包不成功。 原因未知 哪位大大 知道 告诉一声啊。。。。
Buildfile: E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
Android SDK Tools Revision 22.6.3
Installed at E:\adt-bundle-windows-x86-20140321\sdk
-setup:
Project Name: MyFirst
Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
Using latest Build Tools: 19.0.3
Resolving Build Target for MyFirst…
Project Target: Android 4.1.2
API level: 16
----------
Creating output directories if needed…
Created dir: E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\bin\rsObj
Created dir: E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\bin\rsLibs
----------
Resolving Dependencies for MyFirst…
Library dependencies:
Ordered libraries:
----------
Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
Android SDK Tools Revision 22.6.3
Installed at E:\adt-bundle-windows-x86-20140321\sdk
-setup:
Project Name: cocos2dxandroid
Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
Using latest Build Tools: 19.0.3
Resolving Build Target for cocos2dxandroid…
Project Target: Android 4.1.2
API level: 16
----------
Creating output directories if needed…
----------
Resolving Dependencies for cocos2dxandroid…
Library dependencies:
No Libraries
-code-gen:
Found Deleted Target File
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
Handling aidl files…
No AIDL files to compile.
----------
Handling RenderScript files…
----------
Handling Resources…
Found new input file
Generating resource IDs…
(skipping file ‘.gitignore’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
----------
Handling BuildConfig class…
No need to generate new BuildConfig.
-pre-compile:
-compile:
Creating library output jar file…
-post-compile:
-obfuscate:
-dex:
Library project: do not convert bytecode…
-crunch:
Crunching PNG Files in source dir: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\res
To destination dir: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\res
Crunched 0 PNG files to update cache
-package-resources:
Library project: do not package resources…
-package:
Library project: do not package apk…
-post-package:
-do-debug:
Library project: do not create apk…
Updating property file: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\build.prop
Updating property file: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\build.prop
Updating property file: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\build.prop
Updating property file: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\build.prop
-post-build:
debug:
-code-gen:
Found Deleted Target File
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
Handling aidl files…
No AIDL files to compile.
----------
Handling RenderScript files…
----------
Handling Resources…
Found Deleted Target File
Generating resource IDs…
(skipping file ‘.gitignore’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
----------
Handling BuildConfig class…
Generating BuildConfig class.
-pre-compile:
-compile:
Compiling 2 source files to E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\bin\classes
-post-compile:
-obfuscate:
-dex:
input: E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\bin\classes
input: E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\classes.jar
Using Pre-Dexed classes-4c9bd24ac8a918d1a69e4425b04fb7ad.jar <- E:\cocos2d-x-2.2.3\cocos2dx\platform\android\java\bin\classes.jar
Converting compiled files and external libraries into E:\cocos2d-x-2.2.3\projects\MyFirst\proj.android\bin\classes.dex…
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lorg/cocos2dx/lib/Cocos2dxAccelerometer;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
BUILD FAILED
E:\adt-bundle-windows-x86-20140321\sdk\tools\ant\build.xml:892: The following er
ror occurred while executing this line:
E:\adt-bundle-windows-x86-20140321\sdk\tools\ant\build.xml:894: The following er
ror occurred while executing this line:
E:\adt-bundle-windows-x86-20140321\sdk\tools\ant\build.xml:906: The following er
ror occurred while executing this line:
E:\adt-bundle-windows-x86-20140321\sdk\tools\ant\build.xml:284: null returned: 2
Total time: 5 seconds