aarch64-linux-android-strip file Missing

后端 未结 10 1981
萌比男神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:32

    I faced this issue while I was building on jenkins slave.

    I had deleted the NDK on the development computer which could successfully build and then I couldn't build successfully anymore.

    So I used the android studio to open the project on jenkins slave

    download ndk by sdk manager as picture

    After the download finished my project can build successfully.

    Hope this helps

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-23 09:33

    Yes, I got this error after update NDK to 17.0.4754217.

    I just tried workaround solutions with copy folder from v.16 (\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64) from https://developer.android.com/ndk/downloads/older_releases and it work for me.

    Not sure about stable but it work for me, until waiting new fix from Google.

    0 讨论(0)
  • 2020-12-23 09:43

    I found a package here from which I copied all missing files and now it's working perfect.

    0 讨论(0)
提交回复
热议问题