Adding bitcoinj to my Android app build.gradle file lowers the number of supported devices to 12

54 views
Skip to first unread message

Thomas Logan

unread,
Dec 3, 2016, 11:34:30 PM12/3/16
to bitcoinj

So I’m creating a bitcoin cold wallet for Android, but I’m having this odd issue.
When I just add bitcoinj to my Android app build.gradle file and submit to the Google Play Store, the number of supported devices as shown on the Google Play Store submission console goes from 10974 to 12 supported devices. There is no way so many devices do not support bitcoinj. I see plenty of bitcoin apps on the Play Store that uses bitcoinj and supports a large number of devices. I’m definitely doing something wrong, is there some configuration that I’m not aware of or something? How can I fix this?



Andreas Schildbach

unread,
Dec 5, 2016, 3:11:40 PM12/5/16
to bitc...@googlegroups.com
The play store lists the differences to the previous APK when uploading.
Reading that should tell why your app is limited so extremely.

As you said, bitcoinj can hardly be the reason. Bitcoin Wallet (which
uses bitcoinj) supports 12696 devices.
> --
> You received this message because you are subscribed to the Google
> Groups "bitcoinj" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


Thomas Logan

unread,
Dec 8, 2016, 12:59:36 AM12/8/16
to bitcoinj
So I've talked with Google play support, and the reason they gave me for the
device incompatibility issue is 'No Supported native platform: armeabi, armeabi-v7a'.
 And this happens only if I add bitcoinj to my gradle file.
So does bitcoinj have dependencies on native precompiled libraries that would cause this issue?

Thomas Logan

unread,
Dec 8, 2016, 2:56:12 AM12/8/16
to bitcoinj
Nvm, found out bitcoinj uses scrypt, so I will need to get the .so files to support the arm archs.

Andreas Schildbach

unread,
Dec 8, 2016, 6:35:39 AM12/8/16
to bitc...@googlegroups.com
Ah yes, indeed. You can use

packagingOptions {
exclude 'lib/x86_64/darwin/libscrypt.dylib'
exclude 'lib/x86_64/freebsd/libscrypt.so'
exclude 'lib/x86_64/linux/libscrypt.so'
}

in your applications build.gradle to exclude the native libs.
> <https://groups.google.com/d/optout>.

toml...@gmail.com

unread,
Dec 9, 2016, 1:34:54 AM12/9/16
to bitc...@googlegroups.com
Neat. Thanks for the tip!
> You received this message because you are subscribed to a topic in the Google Groups "bitcoinj" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/bitcoinj/s1jUZNtLT8w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to bitcoinj+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages