Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I have updated my Android studio 2.3, but my project got the below errors

Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip''

Error:net.rubygrapefruit.platform.NativeException: Could not start 'C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip'

Error:java.io.IOException: Cannot run program "C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip" (in directory "E:\projectNmame\app"): CreateProcess error=2, The system cannot find the file specified

I am stuck, help me?

1 Answer

0 votes
by (36.8k points)

Even I had faced the same error using the NDK version 17.0.4754217. You can work around 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 the native code (C++), I recommend to add this code too:

ndk {

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

}

Make sure you won't embed any MIPS binary.

To know about Linux join the Linux training

Do check out the video below

Related questions

0 votes
1 answer
asked Jan 26, 2021 in Linux by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...