Post
Topic
Board BitcoinJ
Topic OP
Building bitcoinj for Android
by
bitcoinsecurityproject
on 27/01/2014, 16:03:48 UTC
Hey all,

I'm trying to build bitcoinj for use with an Android App using Maven.

For starters, I have built the latest version (commit 4ca476ff353913b33034ff5e5a1f0c4d734d8c64)

I have a generated bitcoinj-0.11-SNAPSHOT.jar file and am importing it into my Android App Lib.

When I try to use the library, I am getting a "java.lang.NoClassDefFoundError: org.bitcoinj.wallet.Protos$Wallet" error. There is a similar discussion here: http://code.google.com/p/bitcoinj/issues/detail?id=133 but I did not understand the solution and am not sure if it would work for me.

When I look inside the generated JAR, the class is in there but am still getting the NoClassDefFoundError. Any help is appreciated.

Thanks!