aarch64-linux-android-strip file Missing

后端 未结 10 1979
萌比男神i
萌比男神i 2020-12-23 09:07

I updated to Android studio 2.3 and my project got these errors

Error:org.gradle.process.internal.ExecException: A problem occurred starting process \'comman         


        
10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 09:33

    I had the same problem when using NDK version 17.0.4754217 (maybe on newer versions, it doesn't happen). You can workaround this issue by adding the following code in your gradle.build:

    packagingOptions{
        doNotStrip '*/mips/*.so'
    }
    

    Or

    packagingOptions{
        doNotStrip '*/mips/*.so'
        doNotStrip '*/mips64/*.so'
    }
    

    If you are using native code (C++), I recommend add the following code too:

    ndk {
        abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86' // <- only the supported ones
    }
    

    To make sure you won't embed any MIPS binary.

提交回复
热议问题