as3.2导入工程的坑

1.导入美摄sdk后,出现了一个native使用mips的strip的err.直接把ndk,lldb,cmake禁止,ok.

推测只禁止ndk就可以.

https://stackoverflow.com/questions/42739916/aarch64-linux-android-strip-file-missing/42791608

90 down vote

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.

enter image description here

shareimprove this answer

edited May 14 at 11:43

answered May 13 at 12:27

CookieMonster

1,1981810

  • 1

    Helped me to build and run the project with OpenCV lib integrated (before the update to Android Studio 3.1.2 it works without problems), but it is a temporary workaround. This issue might somehow connected to the mips, mips64, armeabi deprecation in NDK r17: developer.android.com/ndk/guides/abis#sa – yaroslav May 14 at 8:33

猜你喜欢

转载自blog.csdn.net/u010029439/article/details/84943712