jackba / bitcoinspinner

Automatically exported from code.google.com/p/bitcoinspinner
0 stars 0 forks source link

ant build problem #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello. F-Droid.org distributes apks of this app and we get a problem with the 
latest version. It is a common enough problem that seems to not affect Eclipse. 
It can often be solved be deleting duplicate source code files but I am not a 
programmer so we will need to wait for a fix from you.

UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] java.lang.IllegalArgumentException: already added: Lcom/bccapi/legacy/DeterministicECKeyManager;
       [dx]     at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
       [dx]     at com.android.dx.dex.file.DexFile.add(DexFile.java:163)

The recipe is :

Build Version:0.8.1b,36,82,subdir=BitcoinSpinner,prebuild=ant bitlib-jar -f 
../bitlib/build.xml && \
mkdir -p libs/ && ant bccapi-jar -f ../bccapi/build.xml && mv 
../bccapi/out/bccapi.jar libs/

Original issue reported on code.google.com by david8bl...@gmail.com on 6 Feb 2013 at 1:27

GoogleCodeExporter commented 9 years ago
DeterministicECKeyManager.java only exists in one instance, so I seen no 
duplicate files to delete. I guess this error occurred when I moved files 
around in a recent update. Maybe you should make sure that old jar files are 
deleted, as I have moved DeterministicECKeyManager from BitcoinSpinerLib to 
bitlib.

Original comment by jan.mol...@gmail.com on 6 Feb 2013 at 1:42

GoogleCodeExporter commented 9 years ago
One of the nice things about F-Droid is that it (usually) cleans the repository.

Original comment by david8bl...@gmail.com on 6 Feb 2013 at 2:32

GoogleCodeExporter commented 9 years ago
It builds fine for me with opensuse openjdk6 (java 1.6.0_27), but not on our 
build server which uses the jdk in debian testing.

Original comment by david8bl...@gmail.com on 24 Apr 2013 at 1:35

GoogleCodeExporter commented 9 years ago
Althought the error happens during the dex stage and I think we all have the 
same version of that (dx --version: 1.7)

Original comment by david8bl...@gmail.com on 24 Apr 2013 at 7:22

GoogleCodeExporter commented 9 years ago
Found the bug. The Ant build scripts included .class files twice by mistake. 
This makes jdk choke on it. Fix submitted. Please verify.

Original comment by jan.mol...@gmail.com on 1 May 2013 at 8:49

GoogleCodeExporter commented 9 years ago
Our build server just built it so it must be fixed.

Original comment by david8bl...@gmail.com on 1 May 2013 at 3:44