【我的Android进阶之旅】解决:The currently selected variant “debug“ uses split APKs, but none of the 1 split...

一、错误描述

在Github下载了一份代码,在本地运行看看效果,直接运行失败,如下所示:
在这里插入图片描述
错误描述如下所示:

The currently selected variant "debug" uses split APKs, 
but none of the 1 split apks are compatible with the current device with ABIs "armeabi-v7a, armeabi".

翻译过来就是:

当前选择的变体“debug”使用拆分APK,但1个拆分APK中没有一个与当前具有ABIarmeabi-v7a,armeabi”的设备兼容。

二、解决方法

  1. 我的设备只支持armeabi-v7a 或者armeabi

  2. 代码中ndk选项只配置了arm64-v8a

  3. 因为项目有armeabi-v7a

猜你喜欢

转载自blog.csdn.net/qq446282412/article/details/129003192