简体   繁体   English

从Windows导入项目到Mac时出现Android Studio问题

[英]Android Studio issue when importing the project from windows to mac

I am trying to import my Android project from my pc with windows to my mac ( OSX ) and I get the following error when the project is gradlleing: 我正在尝试将我的Android项目从具有Windows的PC导入到我的Mac(OSX),并且当该项目分等级时出现以下错误:

这是错误

So, do you have any idea why is that? 那么,你知道为什么吗? I can import projects from Mac to my Windows but when I do from my Windows to Mac I get this error.... 我可以将项目从Mac导入到Windows,但是当我从Windows导入到Mac时,出现此错误...。

Thank you for your time and help! 感谢您的时间和帮助!

Open the file and check if you have something like this: 打开文件,检查是否有以下内容:

distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

If not just add the above to the end of the file. 如果不是,只需将以上内容添加到文件末尾。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM