Bitcoin Forum
May 06, 2024, 06:03:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitcoinJ Build Issues [SOLVED]  (Read 1144 times)
enmaku (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
June 07, 2012, 06:28:26 PM
Last edit: June 07, 2012, 06:47:57 PM by enmaku
 #1

I can't for the life of me get my BitcoinJ Android project to build. There's not much to it yet, I'm literally just populating a byte[] array and attempting to use Base58.encode on it. It will build and execute but when clicking the button that launches Base58.encode() I get the following:

Code:
06-07 18:20:13.742: D/AndroidRuntime(231): Shutting down VM
06-07 18:20:13.742: W/dalvikvm(231): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
06-07 18:20:13.750: E/AndroidRuntime(231): Uncaught handler: thread main exiting due to uncaught exception
06-07 18:20:13.760: E/AndroidRuntime(231): java.lang.NoClassDefFoundError: com.google.bitcoin.core.Base58
06-07 18:20:13.760: E/AndroidRuntime(231): at com.CIMS.BitcoinAddress.BitcoinAddressUtilityActivity$1.onClick(BitcoinAddressUtilityActivity.java:41)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.View.performClick(View.java:2364)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.View.onTouchEvent(View.java:4179)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.widget.TextView.onTouchEvent(TextView.java:6541)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.View.dispatchTouchEvent(View.java:3709)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
06-07 18:20:13.760: E/AndroidRuntime(231): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
06-07 18:20:13.760: E/AndroidRuntime(231): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
06-07 18:20:13.760: E/AndroidRuntime(231): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.os.Handler.dispatchMessage(Handler.java:99)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.os.Looper.loop(Looper.java:123)
06-07 18:20:13.760: E/AndroidRuntime(231): at android.app.ActivityThread.main(ActivityThread.java:4363)
06-07 18:20:13.760: E/AndroidRuntime(231): at java.lang.reflect.Method.invokeNative(Native Method)
06-07 18:20:13.760: E/AndroidRuntime(231): at java.lang.reflect.Method.invoke(Method.java:521)
06-07 18:20:13.760: E/AndroidRuntime(231): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
06-07 18:20:13.760: E/AndroidRuntime(231): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
06-07 18:20:13.760: E/AndroidRuntime(231): at dalvik.system.NativeStart.main(Native Method)
06-07 18:20:13.770: I/Process(67): Sending signal. PID: 231 SIG: 3
06-07 18:20:13.785: I/dalvikvm(231): threadid=7: reacting to signal 3
06-07 18:20:13.785: E/dalvikvm(231): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
06-07 18:20:14.050: I/ARMAssembler(67): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x47c838:0x47c8f4] in 380336 ns
06-07 18:20:14.070: I/ARMAssembler(67): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x47c920:0x47cae8] in 471186 ns

I've tried following BitcoinJ's installation instructions, installed Maven etc but when I run "mvn install" it kindly informs me that it can't find a POM file and exits. I've never used Maven before so I've got no clue what that means or how to fix it.

I've included junit-4.8.2.jar, slf4j-api-1.6.1.jar and slf4j-simple-1.6.1.jar along with bitcoinj-0.4-android.jar but feel like I have to be missing other dependencies.

Has anyone seen this before and knows how to resolve it?
1715018615
Hero Member
*
Offline Offline

Posts: 1715018615

View Profile Personal Message (Offline)

Ignore
1715018615
Reply with quote  #2

1715018615
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
vuce
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
June 07, 2012, 06:36:25 PM
 #2

If bitcoinJ 0.4 and bitcoinJ 0.4-android use the same dependencies, these worked for me:

bcprov-jdk15-1.46
log4j-1.2.16
slf4j-log4j12-1.6.2
guava-r03
protobuf-java-2.4.1
slf4j-api-1.6.2
enmaku (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
June 07, 2012, 06:41:39 PM
 #3

Never mind, I got M2E working in Eclipse and that seems to have taken care of things. Thanks for the attempt though, vuce!
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
June 08, 2012, 11:34:54 AM
 #4

The latest version is 0.5 - if you're developing with bitcoinj, sign up for the announcements list and/or follow the +Page!

https://plus.google.com/b/102614914114364947458/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!