Android Studio错误:安装失败,消息为INSTALL\u failed\u NO\u MATCHING\u ABIS:提取本机库失败,res=-113
我正在使用Microsoft Azure认知服务开发一个用于情感识别的Android应用程序。我正在使用以下GitHub存储库中的代码 当我在装有安卓8的华硕智能手机上运行应用程序时,出现以下错误: 安装失败,消息为INSTALL\u failed\u NO\u MATCHING\u ABIS:未能提取本机库,res=-113。 通过卸载现有版本的apk(如果存在),然后重新安装,可以解决此问题 警告:卸载将删除应用程序数据 是否要卸载现有应用程序 我尝试在android块中添加以下内置.gradle(模块:app)Android Studio错误:安装失败,消息为INSTALL\u failed\u NO\u MATCHING\u ABIS:提取本机库失败,res=-113,android,android-studio,microsoft-cognitive,face-api,Android,Android Studio,Microsoft Cognitive,Face Api,我正在使用Microsoft Azure认知服务开发一个用于情感识别的Android应用程序。我正在使用以下GitHub存储库中的代码 当我在装有安卓8的华硕智能手机上运行应用程序时,出现以下错误: 安装失败,消息为INSTALL\u failed\u NO\u MATCHING\u ABIS:未能提取本机库,res=-113。 通过卸载现有版本的apk(如果存在),然后重新安装,可以解决此问题 警告:卸载将删除应用程序数据 是否要卸载现有应用程序 我尝试在android块中添加以下内置.gr
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a'
universalApk true
}
}
这并不能解决问题
这些是build.gradle中的依赖项
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.microsoft.projectoxford:emotion:1.0.355'
implementation 'com.microsoft.projectoxford:face:1.0.0'
implementation 'com.google.code.gson:gson:2.5'
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'
}
非常感谢您的帮助。您使用的C库中没有包含a。因此,请输入该手机的正确ABI。最有可能是armv7,但如果没有确切的型号,我们无法确定。确保您有所有abi的so文件,并且它与设备的abi匹配。我使用此代码在手机上检查了abi。Build.SUPPORTED_ABIS[0]。它是arm64-v8a。即使在包含它之后,我也会得到相同的错误拆分{abi{enable true reset()包括'x86','armeabi-v7a','x86_64','armeabi','arm64-v8a'universalApk true}