使用 NDK r17 時,可能 Android Studio 會出現(xiàn)以下提示:
A problem occurred starting process ‘command‘/***/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt /darwin-x86_64/bin/mips64el-linux-android-strip” 系統(tǒng)找不到指定的文件
這是因為 NDK r17 之后不再支持 mips 平臺,在 build.gradle 里增加如下配置可解決
android {
? ? ? ? defaultConfig {
? ? ? ? ? ? .....
? ? ? ? }
? ? ? ? packagingOptions {
? ? ? ? ? ? doNotStrip '*/mips/*.so'
? ? ? ? ? ? doNotStrip '*/mips64/*.so'
? ? ? ? }
? ? }