aarch64-linux-android-strip file Missing

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

    The very helpful tip for this is to download

    > android-ndk-r16b

    Then simply change the NDK path to android-ndk-r16b

    LIKE ME:

    C:\Android\android-ndk-r16b

    Then definitely this wills shutout my first app experience.

    Image shown here

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

    I have Android Studio 3.1.2 and after I approved the IDE suggested updates I got the next errors:

    org.gradle.api.tasks.TaskExecutionException: Execution failed for task '...'.
    
    Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip'
    
    Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip'
    
    Caused by: java.io.IOException: Cannot run program "/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip" (in directory "/Users/.../.../.../app"): error=2, No such file or directory
    
    Caused by: java.io.IOException: error=2, No such file or directory
    

    It looks like there is a problem with NDK version 17.0.4754217.

    Since I don't use ndk components in my project for me the solution was removing NDK from the SDK Manager.

    Go to SDK Manager -> SDK Tools tab -> uncheck NDK -> Apply.

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

    I had to download about 1 GB file just to get these small packages so anybody having an issue with these packages can download them from the link below and then simply extract them to

    sdk\ndk-bundle\toolchains\

    mips64el-linus-android

    aarch64-linux-android

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

    The main reason is as above everyone explained, removal of support from r17. Simple and quick solution is.

    1. Download NDK release r16 from [https://developer.android.com/ndk/downloads/older_releases][1]
    2. Extract it
    3. Copy files under toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/ from r16 extracted folder
    4. Paste the compied files to your ndk directory (r17) toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/ folder

    This worked for me.

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

    I had solved this problem by change the NDK version to a older one. You can get a older version of ndk from https://developer.android.com/ndk/downloads/older_releases . The NDK's path is defined in the file named local.properties in the android project. Empty the original NDK file then decompress the oloder version NDK archive to the path defined in local.properties. Finally clean and rebuild the project.

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

    Add these to gradle.build file:

    packagingOptions{
        doNotStrip '*/mips/*.so'
        doNotStrip '*/mips64/*.so'
    }
    
    0 讨论(0)
提交回复
热议问题