Device supports x86,but APK only supports armeabi

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangxinxinsj/article/details/82867383

android studio

在这里插入图片描述

修改Demo/app/build.gradle中的

      ndk {
         abiFilters rootProject.ext.ndkAbi
        }

      ndk {
            abiFilters "armeabi-v7a", "x86"
        }

修改后上面会提示

Gradle files have changed since last project sync .A project sync may be necessary for the IDE  to work properly

后面有一个Sync Now 按钮,点击,然后同步一下再点击运行按钮就可以了

猜你喜欢

转载自blog.csdn.net/wangxinxinsj/article/details/82867383