Android Studio 2.1无法找到ndk-bundle的工具链 [英] Android studio 2.1 Unable to find toolchain of ndk-bundle
问题描述
升级到Andriod Studio 2.1之后,
我遇到了一个错误:
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**
,然后检查目录 /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.
在升级Android Studio之前,我可以成功构建项目。
有人知道如何消除此错误并与我分享您的治愈方法吗?谢谢
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
推荐答案
毕竟,我采取了一种快速而肮脏的方式:
After all, I take a quick and dirty way:
-
创建目录
< workingRoot> /Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64
转到上述目录下,然后
git clone https://android.googlesource。 com / platform / prebuilts / gcc / linux-x86 / aarch64 / aarch64-linux-android-4.9 /
Go under above directory and
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/
返回AS2 .1,再次同步。然后错误消息消失了。
Back to AS2.1, sync again. Then the error message is gone.
介绍地址:
这篇关于Android Studio 2.1无法找到ndk-bundle的工具链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!