guardianproject / ChatSecureAndroid

This project has ended, but ChatSecure iOS continues. For Android, please use Conversations or Zom instead
https://chatsecure.org/blog/chatsecure-conversations-zom/
Apache License 2.0
1.07k stars 521 forks source link

ant debug failed #579

Open rez-mo opened 10 years ago

rez-mo commented 10 years ago

Hi

I get this error when run "ant debug" command on mac OS X :

to 4457.5KiB to save 1159.8KiB [dx] Merged dex A (3512 defs/4155.7KiB) with dex B (193 defs/325.8KiB). Result is 3705 defs/4457.5KiB. Took 0.2s [dx] Result compacted from 5866.5KiB to 4668.7KiB to save 1197.8KiB [dx] Merged dex A (3705 defs/4457.5KiB) with dex B (86 defs/219.3KiB). Result is 3791 defs/4668.7KiB. Took 0.3s [dx] [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] com.android.dex.DexException: Multiple dex files define Linfo/guardianproject/cacheword/CacheWordHandler; [dx] at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) [dx] at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) [dx] at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535) [dx] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171) [dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:189) [dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454) [dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:302) [dx] at com.android.dx.command.dexer.Main.run(Main.java:245) [dx] at com.android.dx.command.dexer.Main.main(Main.java:214) [dx] at com.android.dx.command.Main.main(Main.java:106) [dx]

BUILD FAILED /Users/reza/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:892: The following error occurred while executing this line: /Users/reza/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:894: The following error occurred while executing this line: /Users/reza/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:906: The following error occurred while executing this line: /Users/reza/Documents/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:283: null returned: 2

rez-mo commented 10 years ago

And same problem with eclipse

paulmarc commented 10 years ago

Same with me (Ant & eclipse and even Android Studio). Linux x86-64, with updated Android SDK.