认证0级讲师
You should be using the simulator to run the apk, but the JNI part of your program does not generate corresponding code for the simulator's X86 architecture.
You can try adding ndk and splits to build.grald in Model, for example:
android{ ... defaultConfig { applicationId "XXXXXXX" minSdkVersion 11 targetSdkVersion 21 versionCode 126 versionName "1.2.6" ndk { //设置支持的SO库架构 abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a' moduleName "app" } .... splits { abi { enable true reset() include 'x86', 'armeabi-v7a', 'mips' universalApk true } } }
You should be using the simulator to run the apk, but the JNI part of your program does not generate corresponding code for the simulator's X86 architecture.
You can try adding ndk and splits to build.grald in Model, for example: