Bitcoin Forum
April 25, 2024, 04:25:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Android Wallet keeps crashing  (Read 1731 times)
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 24, 2014, 10:04:26 PM
 #1

Since I've imported the files into Eclipse, here is what I've got.

[2014-04-24 14:11:12 - wallet] WARNING: unable to write jarlist cache file /home/.../.../workspace/bitcoin-wallet-master/wallet/bin/jarlist.cache
[2014-04-24 14:11:12 - wallet] WARNING: unable to write jarlist cache file /home/.../.../workspace/bitcoin-wallet-master/wallet/bin/jarlist.cache
[2014-04-24 14:11:13 - wallet] Project compiler settings changed. Clean your project.
[2014-04-24 14:11:13 - wallet] WARNING: unable to write jarlist cache file /home/.../.../workspace/bitcoin-wallet-master/wallet/bin/jarlist.cache
[2014-04-24 14:11:13 - wallet] WARNING: unable to write jarlist cache file /home/.../.../workspace/bitcoin-wallet-master/wallet/bin/jarlist.cache
[2014-04-24 14:49:45 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/app/_ActionBarSherlockTrojanHorse$OnCreateOptionsMenuListener;
[2014-04-24 14:49:45 - wallet] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/app/_ActionBarSherlockTrojanHorse$OnCreateOptionsMenuListener;
[2014-04-24 14:50:53 - wallet] Dx
trouble writing output: already prepared
[2014-04-24 14:50:56 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/app/_ActionBarSherlockTrojanHorse$OnCreateOptionsMenuListener;
[2014-04-24 14:50:56 - wallet] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/app/_ActionBarSherlockTrojanHorse$OnCreateOptionsMenuListener;
[2014-04-24 14:51:09 - wallet] Dx
trouble writing output: already prepared
[2014-04-24 14:51:11 - wallet] ------------------------------
[2014-04-24 14:51:11 - wallet] Android Launch!
[2014-04-24 14:51:11 - wallet] adb is running normally.
[2014-04-24 14:51:11 - wallet] Performing de.schildbach.wallet.WalletActivity activity launch
[2014-04-24 14:51:11 - wallet] Automatic Target Mode: using device 'c4bb3b50'
[2014-04-24 14:51:11 - wallet] Uploading wallet.apk onto device 'c4bb3b50'
[2014-04-24 14:51:12 - wallet] Installing wallet.apk...
[2014-04-24 14:51:18 - wallet] Success!
[2014-04-24 14:51:18 - wallet] Starting activity de.schildbach.wallet.WalletActivity on device c4bb3b50
[2014-04-24 14:51:20 - wallet] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=de.schildbach.wallet_test/de.schildbach.wallet.WalletActivity }

After installing, every time I tried to open it, the wallet crashes.

Here was my step-by-step process on what I did from start:

1. Download files from github. Site: https://github.com/schildbach/bitcoin-wallet Method: Direct download (not terminal)
2. Go to bitcoin-wallet directory
3. mvn clean install -Prelease -Dandroid.sdk.path=<path to your android sdk>
4. mvn eclipse:eclipse
5. Open Eclipse and Import > General > [Directory of my bitcoin-wallet] > [Showed 3 folders, sample-integration, integration, wallet. Imported integration and wallet] >Finish
6. Showed about 36 Errors which were missing jars so imported that from my .m2/repository directory along with source .jar.
7. Ran it (came across this: Unable to execute dex: Multiple dex files define). Fixed it by deleting 2 automatically generated library Eclipse generated for me: Android Private Libraries with android-support-v4.jar inside and Android Dependencies with library.jar and annotations.jar inside.
8. Ran it again after deleting those libraries.
9. App crashes immediately after opening (tried several times).

What I've tried:
1. Deleting and reimporting everything including the jar files.
2. Changing min-sdk, target-sdk in manifest file


PLEASE HELP! Spent a week already trying to figure out what was wrong. Sad

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714019149
Hero Member
*
Offline Offline

Posts: 1714019149

View Profile Personal Message (Offline)

Ignore
1714019149
Reply with quote  #2

1714019149
Report to moderator
1714019149
Hero Member
*
Offline Offline

Posts: 1714019149

View Profile Personal Message (Offline)

Ignore
1714019149
Reply with quote  #2

1714019149
Report to moderator
1714019149
Hero Member
*
Offline Offline

Posts: 1714019149

View Profile Personal Message (Offline)

Ignore
1714019149
Reply with quote  #2

1714019149
Report to moderator
Andreas Schildbach
Moderator
Hero Member
*
Offline Offline

Activity: 483
Merit: 501


View Profile
April 24, 2014, 10:47:00 PM
 #2

Please use "mvn clean install android:deploy" to deploy to your device. Or use ADB, as documented in the README.

I've given up on using the Eclipse "run" target for Android apps a long time ago...
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 25, 2014, 01:12:05 AM
 #3

Is the test version the only one available not the mainnet? I tried the command and only testnet was installed.

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 25, 2014, 02:54:44 AM
 #4

I tried downloading it now through terminal github and this is what I got when I tried mvn clean install:

Failed to execute goal on project wallet: Could not resolve dependencies for project de.schildbach.wallet:wallet:apk:3.46: Failure to find com.google:bitcoinj:jar:0.11.2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
Andreas Schildbach
Moderator
Hero Member
*
Offline Offline

Activity: 483
Merit: 501


View Profile
April 25, 2014, 08:15:38 AM
 #5

Ah yes, bitcoinj 0.11.2 is not yet on Maven central. I'm afraid until it is, you need to build the release-0.11 branch of bitcoinj yourself.

http://code.google.com/p/bitcoinj/source/checkout
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 25, 2014, 09:06:09 AM
 #6

Ah yes, bitcoinj 0.11.2 is not yet on Maven central. I'm afraid until it is, you need to build the release-0.11 branch of bitcoinj yourself.

http://code.google.com/p/bitcoinj/source/checkout


Please bear with me here but how exactly would I do that? Do I change it in pom.xml file? I tried calling a git on the link you gave me and copied it to me bitcoin-wallet/wallet but that didn't work. What do I do after building it?

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
Andreas Schildbach
Moderator
Hero Member
*
Offline Offline

Activity: 483
Merit: 501


View Profile
April 25, 2014, 09:24:05 AM
 #7

Follow the checkout instructions on the link I gave you, switch to the "release-0.11" branch or the v0.11.2 tag, then do a "mvn clean install" in that project.

After that, you issue with the bitcoin wallet build should be gone.
Mike Hearn
Legendary
*
Offline Offline

Activity: 1526
Merit: 1128


View Profile
April 25, 2014, 05:30:58 PM
 #8

I uploaded it to Central today. Should work now, I hope.
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 26, 2014, 06:45:41 AM
 #9

I uploaded it to Central today. Should work now, I hope.

Seems it is not on here: http://search.maven.org/#browse%7C-1153508069

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 26, 2014, 06:47:45 AM
 #10

Follow the checkout instructions on the link I gave you, switch to the "release-0.11" branch or the v0.11.2 tag, then do a "mvn clean install" in that project.

After that, you issue with the bitcoin wallet build should be gone.

Thanks! Will try that now.

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
Mike Hearn
Legendary
*
Offline Offline

Activity: 1526
Merit: 1128


View Profile
April 26, 2014, 05:55:21 PM
 #11

Oops, sorry, I forgot to push the release button. Now it should show up soon, hopefully.
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 27, 2014, 01:18:34 AM
 #12

Oops, sorry, I forgot to push the release button. Now it should show up soon, hopefully.

Seems like you need to upload it on here too:
http://search.maven.org/#browse%7C477229452

Failure to find com.google:bitcoinj-parent:pom:0.11.2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced


Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 27, 2014, 02:15:09 AM
 #13

Please use "mvn clean install android:deploy" to deploy to your device. Or use ADB, as documented in the README.

I've given up on using the Eclipse "run" target for Android apps a long time ago...


Ok I fixed it! Thank you so much for your help! And you were right...Eclipse isn't really compatible with this wallet is it? This is the first time I've come across an app that can't be run by Eclipse.

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
northranger79510 (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250

Riecoin and Huntercoin to rule all!


View Profile
April 27, 2014, 05:16:45 AM
 #14

Anyone know where in the code the public key is assigned? I know BTC is 0x00 for base 58. WHere is that assigned exactly?

Huntercoin: H9kttkrQidiQMG9NibmTgjgCKqWJMAkAXD
Riecoin: Like us on https://www.facebook.com/TheRiecoinCommunity
Mike Hearn
Legendary
*
Offline Offline

Activity: 1526
Merit: 1128


View Profile
April 27, 2014, 02:32:33 PM
 #15

Oops, I forgot the parent pom again. Sorry! That's my mistake. I uploaded it now. There's a replication delay of some hours before it shows up in Central though.

What do you mean by "the public key is assigned"? Are you looking for the ECKey class?
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!