本文介绍了Bitcoinj不会编译到的Nexus 5与Android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立使用Bitcoinj的应用程序,我想在一台Nexus 5,运行它使用等级来构建Bitcoinj - 编译org.bitcoinj:bitcoinj核心:0.12 - 并随后运行在手机上的应用程序,我收到此错误...

I am building an app using Bitcoinj and I am trying to run it on a Nexus 5. When using grade to build Bitcoinj - compile 'org.bitcoinj:bitcoinj-core:0.12' - and subsequently running the app on the phone, I receive this error...

失败[INSTALL_FAILED_NO_MATCHING_ABIS]

有没有人有任何想法,这是为什么,以及如何解决它?

Does anyone have any idea why this is, or how to fix it?

谢谢

丹。

推荐答案

在试图运行Android应用程序使用的BitcoinJ库的Nexus 5,采用最新的Andr​​oid 5.0版本(棒棒堂)您将收到此错误信息INSTALL_FAILED_NO_MATCHING_ABIS。最主要的原因是,你要安装一个应用程序,有本地库,它并没有为你的CPU体系结构机库。

When trying to run an android app that uses the BitcoinJ library for Nexus 5, with the latest android version 5.0 (Lollipop)you will get this error message "INSTALL_FAILED_NO_MATCHING_ABIS".The main reason is that you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture.

这没有问题的机库是Scrypt.jar所以我排除它

The native library that did the problem was Scrypt.jar so I excluded it

    compile('com.google:bitcoinj:0.11.3') {
    exclude module: 'scrypt'
}

和,而不是使用

com.lambdaworks.crypto.SCrypt;

只是使用例如另一个scrypting库,

just use another scrypting library for instance,

org.spongycastle.crypto.generators.SCrypt;

好运

这篇关于Bitcoinj不会编译到的Nexus 5与Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 01:42