Ant debug 打包 出错 求助。。。。。

输入 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

兄弟有没有解决啊,遇到的报错是一模一样啊 -。 -

这个问题有解决吗??我的也是这样

把工程目录下org\cocos2dx\lib文件夹 删掉就没问题了

没有这个目录,不知道能否具体点,给出绝对路径,我参考下,或来个详细截图!

这个问题貌似是说权限写入的问题,我的解决办法是将 项目和Cocosdx目录放在同一根目录下 项目路径 :F:\cocos2dx\cocos_wk

cocos2dx lib 目录 F:\cocos2dx\cocos2d-x-3.2

注意红色的路径

bin\classes\org\cocos2dx和proj.android\src\org\cocos2dx的lib文件删除掉就可以了

大神帮我看一下这个,是什么原因啊