错误“设备支持x86,但APK仅支持armeabi-v7a"是什么原因? [英] What is the reason for the error "Device supports x86, but APK only supports armeabi-v7a"
本文介绍了错误“设备支持x86,但APK仅支持armeabi-v7a"是什么原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过从 GitHub 测试一些项目来玩 Android Studio,当我尝试模拟 apk 时,它不允许我选择模拟器.
I am playing around with Android Studio by testing some projects out from GitHub and when I try to emulate the apk, it does not let me choose an emulator.
它告诉我:
设备支持x86,但APK只支持armeabi-v7a
Device supports x86, but APK only supports armeabi-v7a
为什么要这样做?
推荐答案
我遇到了同样的问题,我从 module:app 中查看了 build.gradle.原来有这样的配置:
I had the same problem, I checkout the build.gradle from module:app. It turns out that there's a such config:
ndk {
abiFilters "armeabi-v7a", "x86"
}
当我全部注释掉时,一切正常.
when I commented all out, everything worked fine.
我试图处理 React Native Android 项目.
这篇关于错误“设备支持x86,但APK仅支持armeabi-v7a"是什么原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文