gpt4 book ai didi

Android: Bitcoin J INSTALL_FAILED_NO_MATCHING_ABIS: 提取 native 库失败,res=-113

转载 作者:行者123 更新时间:2023-11-29 23:21:20 42 4
gpt4 key购买 nike

我的项目遇到问题 在我集成 BitcoinJ 库之前一切正常,一旦我将该库添加到我的 Gradle 文件中,它就会停止在 Real 上安装 APK出现错误的设备:

INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113

这是我的 Gradle 文件:

apply plugin: 'com.android.application'

android {

compileSdkVersion 28
defaultConfig {
applicationId "com.umerkiani.osrwallet"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

dataBinding {
enabled true
}



compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}


}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
implementation('org.web3j:core:3.3.1-android')

}

我也曾尝试将以下行添加到 Gradle,但没有帮助

splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'x86_64'
universalApk true
}
}

最佳答案

在 app.gradle 中使用 follwing 它将解决您的问题

apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.umerkiani.osrwallet"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

packagingOptions {
exclude 'lib/x86_64/darwin/libscrypt.dylib'
exclude 'lib/x86_64/freebsd/libscrypt.so'
exclude 'lib/x86_64/linux/libscrypt.so'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
implementation('org.web3j:core:3.3.1-android')
implementation 'org.slf4j:slf4j-api:1.7.12'
implementation 'org.slf4j:slf4j-simple:1.7.12'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.google.zxing:core:3.3.1'
implementation 'com.karumi:dexter:5.0.0'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0'
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
}

关于Android: Bitcoin J INSTALL_FAILED_NO_MATCHING_ABIS: 提取 native 库失败,res=-113,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54263808/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com