利用AndroidStudio模拟器运行项目时 报出异常

来源:互联网 发布:算法 c语言实现 pdf 编辑:程序博客网 时间:2024/06/05 07:11

1.当我们用AndroidStudio Run时,控制台报出异常

The currently selected variant "debug" uses split APKs, but none of the 1 split apks are compatible with the current device with density "560" and ABIs "x86".
Error while Installing APK

解决方案:

在app的build.gradle文件中 将ndk字段添加一个x86库架构,如图:


重新运行即可在模拟器中安装app。

0 0
原创粉丝点击