如何解决Android Studio 错误:安装失败并显示消息 INSTALL_FAILED_NO_MATCHING_ABIS:无法提取本机库,res=-113
我正在使用 Microsoft Azure 认知服务开发用于情绪识别的 Android 应用程序。我正在使用以下 GitHub 存储库中的代码。
https://github.com/microsoft/Cognitive-Emotion-Android
当我在装有 Android 8 的 Asus 智能手机上运行该应用程序时,出现以下错误:
安装失败并显示消息 INSTALL_FAILED_NO_MATCHING_ABIS:无法提取本机库,res=-113。 可以通过卸载现有版本的 apk(如果存在)然后重新安装来解决此问题。
警告:卸载将删除应用程序数据!
您要卸载现有的应用程序吗?
我尝试在 android 块内的 build.gradle(Module:app) 中添加以下内容
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'
}
非常感谢您的帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。