问题描述
我正在使用 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 (将#修改为@)