Gradle项目同步失败,没有工具链 [英] Gradle project sync fail, no toolchains

查看:92
本文介绍了Gradle项目同步失败,没有工具链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我在android studio中遇到此错误:

Hello I'm getting this error in android studio :

Gradle项目同步失败.基本功能(编辑,调试)将无法正常工作

Gradle project sync failed. Basic functionality (editing, debugging) will not work properly

在邮件中,我得到了:

等级同步失败:在ABI的NDK工具链文件夹中找不到前缀为arm-linux-androideabi的工具链

Gradle sync failed: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

我一直在寻找解决方案,但没有找到解决方法.

I've searched for a solution, but I haven't found one.

希望这里有人可以帮助我.

Hopefully someone from here can help me.

推荐答案

作为MustafaKemal,我取消了NDK更新,此后我收到了Gradle同步错误消息.

As MustafaKemal, I canceled an NDK update, and after that I got the Gradle sync error message.

解决我问题的方法:在Android Studio上,依次转到工具"->"Android"->"SDK管理器"->"SDK工具",然后取消选中"Android NDK"复选框,然后单击应用".

What solved my problem: on Android Studio go to Tools -> Android -> SDK manager -> SDK Tool and uncheck the Android NDK checkbox, then Apply.

然后,再次打开该项目并检查并申请重新安装.

After that, open the item again and check it and apply to reinstall it.

然后耐心等待,似乎在解压缩文件时安装卡住了,但过了一会儿,它就完成了.

then be patient, it might seem the installation is stuck whilst unzipping a file but after a while, a long while, it finishes.

这篇关于Gradle项目同步失败,没有工具链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆