Gradle 'MyApp' refresh failed

1、Error:Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry has been closed.
Restart Android studio will fix it.

2、重启后:Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

  • 解决:在toolchains文件夹中缺少 mips64el-linux-android 文件夹
  • 下载地址: https://developer.android.google.cn/ndk/downloads/?hl=zh-cn,
  • Mac本:打开 cd /Users/baidu/Library/Android/sdk/toolchains
  • 将下载的zip文件解压,并且打开文件夹中的toolchains文件夹,找到需要的mips64el-linux-android ,并将其拖到 Users/baidu/Library/Android/sdk/toolchains
  • sync now即可

你可能感兴趣的:(Gradle 'MyApp' refresh failed)