Android studio 2.1 Unable to find toolchain of ndk-bundle

自作多情 提交于 2019-12-23 04:40:07

问题


After upgrade to Andriod studio 2.1, I run into an eror:

**Error:Unable to find toolchain: <workingRoot>/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt**

and I check the directory /Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/. and there is nothing inside.

I can build the project successfully before the Android studio is upgraded. Do anyone know how to rip off this error and share me your cure? Thanks


回答1:


After all, I take a quick and dirty way:

  1. Create directory <workingRoot>/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/pre‌​built/linux-x86_64

  2. Go under above directory and git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/

  3. Back to AS2.1, sync again. Then the error message is gone.

Introduction address:

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/



来源:https://stackoverflow.com/questions/36976762/android-studio-2-1-unable-to-find-toolchain-of-ndk-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!