首页 新闻 会员 周边 捐助

Netbeans 7.4 创建android 失败

0
悬赏园豆:5 [已关闭问题] 关闭于 2013-12-18 16:43

ant -f C:\\Users\\Administrator\\Documents\\NetBeansProjects\\AndroidApplication clean debug
Android SDK Tools Revision 22.3.0
Installed at D:\software\adt-bundle-windows-x86_64-20131030\sdk
Project Name: AndroidApplication
Project Type: Application
clean:
Deleting directory C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin
Deleting directory C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\gen
Library dependencies:
No Libraries
No sub-builds to iterate on
Android SDK Tools Revision 22.3.0
Installed at D:\software\adt-bundle-windows-x86_64-20131030\sdk
Project Name: AndroidApplication
Project Type: Application
Using latest Build Tools: 19.0.0
Resolving Build Target for AndroidApplication...
Project Target:   Android 1.5
API level:        3
WARNING: No minSdkVersion value set. Application will install on all Android versions.
----------
Creating output directories if needed...
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\res
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\rsObj
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\rsLibs
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\gen
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\classes
Created dir: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\dexedLibs
----------
Resolving Dependencies for AndroidApplication...
Ordered libraries:
------------------
API<=15: Adding annotations.jar to the classpath.
----------
Building Libraries with 'debug'...
No sub-builds to iterate on
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...
Generating resource IDs...
----------
Handling BuildConfig class...
Generating BuildConfig class.
Compiling 3 source files to C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\classes
input: C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\classes
input: D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\support\annotations.jar
Pre-Dexing D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\support\annotations.jar -> annotations-20ef580006503a899212a158a6ba12a8.jar
Converting compiled files and external libraries into C:\Users\Administrator\Documents\NetBeansProjects\AndroidApplication\bin\classes.dex...

UNEXPECTED TOP-LEVEL EXCEPTION:
java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:519)
    at java.nio.HeapByteBuffer.putShort(HeapByteBuffer.java:315)
    at com.android.dex.Dex$Section.writeShort(Dex.java:818)
    at com.android.dex.Dex$Section.writeTypeList(Dex.java:870)
    at com.android.dx.merge.DexMerger$3.write(DexMerger.java:437)
    at com.android.dx.merge.DexMerger$3.write(DexMerger.java:423)
    at com.android.dx.merge.DexMerger$IdMerger.mergeUnsorted(DexMerger.java:317)
    at com.android.dx.merge.DexMerger.mergeTypeLists(DexMerger.java:423)
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:163)
    at com.android.dx.merge.DexMerger.merge(DexMerger.java:187)
    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)
D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
D:\software\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:284: null returned: 2
构建失败 (总时间: 4 秒)

新麦穗的主页 新麦穗 | 初学一级 | 园豆:82
提问于:2013-12-09 16:14
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册