Closed GoogleCodeExporter closed 9 years ago
It seems that you haven't included bitlib and/or bccapi into the
build/classpath. There are 3 basic components BitcoinSpinner depends on bccapi,
which in turn depends on bitlib.
Original comment by jan.mol...@gmail.com
on 12 Aug 2013 at 6:41
I've tried copying bitlib jar into BitcoinSpinner/libs but it still doesn't
work. Version 0.8.2b on f-droid.org works, yet when I try to run that version
built from source, it crashes. This makes me suspect that it's something to do
with updates to the Android SDK; although it could easily be my confusion over
classpaths — the BitcoinSpinner/libs/bccapi.jar has
com/bccapi/bitlib/model/NetworkParameters.class and I always thought that was
enough.
Original comment by david8bl...@gmail.com
on 12 Aug 2013 at 8:03
The log is full of this kind of thing:
[dex] Pre-Dexing /home/gerry/fdroiddata/build/com.miracleas.bitcoin_spinner/BitcoinSpinner/libs/bitlib.jar -> bitlib-bcb9f1f05dccb8ba88627b68590b7bcb.jar
[dx]
[dx] trouble processing:
[dx] bad class file magic (cafebabe) or version (0033.0000)
[dx] ...while parsing com/bccapi/bitlib/StandardTransactionBuilder$1.class
[dx] ...while processing com/bccapi/bitlib/StandardTransactionBuilder$1.class
[dx]
[dx] trouble processing:
Original comment by david8bl...@gmail.com
on 12 Aug 2013 at 8:31
[deleted comment]
I've managed to get it to work by flattening it:
Build Version:0.8.3b,38,89,subdir=BitcoinSpinner,\
target=android-10,\
prebuild=mkdir -p src/com/bccapi/ && \
mv ../bitlib/src/com/bccapi/bitlib src/com/bccapi/ && \
mv ../bccapi/src/com/bccapi/* src/com/bccapi
Original comment by david8bl...@gmail.com
on 12 Aug 2013 at 8:58
Great, can you send me the final gradle config files you use?
Original comment by jan.mol...@gmail.com
on 13 Aug 2013 at 8:23
The gradle config is simple , it uses a similar trick as my ant build,
specifying multiple source directories instead of building jars. Ant is no
longer able to use multiple dirs which is why I needed to copy the files. I'll
post it later.
The target=android-10 is important as android-8 fails with some strange errors.
Original comment by david8bl...@gmail.com
on 13 Aug 2013 at 8:32
I am not that proficient with gradle, so if you can give me the config file I
can take a look: jan.moller@gmail.com
Original comment by jan.mol...@gmail.com
on 13 Aug 2013 at 8:35
[deleted comment]
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
android {
compileSdkVersion 10
buildToolsVersion "18.0.1"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
aidl.srcDirs = ['src']
java.srcDirs = ['../bitlib/src', '../bccapi/src', 'src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
Original comment by david8bl...@gmail.com
on 13 Aug 2013 at 9:29
Thanks, added build.gradle
Original comment by jan.mol...@gmail.com
on 13 Aug 2013 at 12:36
Original issue reported on code.google.com by
david8bl...@gmail.com
on 12 Aug 2013 at 4:37