AS--Unknown Device(Device support,but APK only supports armeabi-v7a)

项目运行模拟器报device support x86 but apk only supports armeabi-v7a

 

原因:build.gradle没集成x86模式。

解决办法:build.gradle文件,找到相关代码并改成如下形式:

        ndk {
            moduleName "ncnn"
            //abiFilters "armeabi-v7a", 'armeabi','armeabi-v8a'
            abiFilters 'armeabi-v7a',"arm64-v8a","x86","x86_64"
        }

重新编译运行。



 

你可能感兴趣的:(android,android,java,gradle)