Author

Topic: Bitcoin Android Wallet keeps crashing (Read 1745 times)

legendary
Activity: 1526
Merit: 1134
April 27, 2014, 09:32:33 AM
#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?
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 27, 2014, 12: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?
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 26, 2014, 09:15:09 PM
#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.
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 26, 2014, 08:18:34 PM
#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

legendary
Activity: 1526
Merit: 1134
April 26, 2014, 12:55:21 PM
#11
Oops, sorry, I forgot to push the release button. Now it should show up soon, hopefully.
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 26, 2014, 01: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.
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 26, 2014, 01: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
legendary
Activity: 1526
Merit: 1134
April 25, 2014, 12:30:58 PM
#8
I uploaded it to Central today. Should work now, I hope.
hero member
Activity: 483
Merit: 551
April 25, 2014, 04: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.
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 25, 2014, 04: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?
hero member
Activity: 483
Merit: 551
April 25, 2014, 03: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
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 24, 2014, 09:54:44 PM
#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
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 24, 2014, 08:12:05 PM
#3
Is the test version the only one available not the mainnet? I tried the command and only testnet was installed.
hero member
Activity: 483
Merit: 551
April 24, 2014, 05: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...
sr. member
Activity: 308
Merit: 250
Riecoin and Huntercoin to rule all!
April 24, 2014, 05: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=
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
Jump to: