Android Studio无法启动,并显示错误“无法锁定系统文件夹".在macOS上 [英] Android Studio fails to start with error "Cannot Lock System Folders" on macOS

查看:150
本文介绍了Android Studio无法启动,并显示错误“无法锁定系统文件夹".在macOS上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以发生的事情是,每次我打开Android Studio时,都会发生这种情况:

So what happens is that every time I open Android Studio, this happens:

我以前成功使用过Android Studio.

I used Android Studio successfully before.

我到处都在寻找解决问题的方法,但是 我得到的所有答案都只与Windows相关 ,与macOS无关.

I've searched everywhere for the solution to the problem, but all the answers I got are only relevant to Windows and not for macOS.

我尝试重新安装Android Studio,但这似乎无济于事.似乎不是防病毒问题,无论是因为禁用还是没有区别.试图寻找权限问题,但在macOS中找不到等效的问题.

I've tried reinstalling Android Studio but that does not seem to help. Does not seem to be an antivirus issue either cause disabling has no difference. Tried looking for permissions issue but I can't find the equivalent one in macOS.

任何帮助将不胜感激.

推荐答案

对我来说,它可以重置Mac上的所有网络配置.我的系统是High Sierra.在终端上,键入 cd/Library/Preferences ,然后键入 sudo rm -r SystemConfiguration .

For me it work to reset all network configuration on Mac. My system is High Sierra. On terminal type cd /Library/Preferences and then type sudo rm -r SystemConfiguration.

所有SystemConfiguration文件都将消失,只有一个(只需键入n或y).重新开始.重新启动后将重新生成所有文件.

All the SystemConfiguration files will go away but one (just type n or y). Restart. All the files will be regenerated on restart.

您的所有网络配置都将消失,但是与无法正常工作的Android Studio相比,最好重新设置一次

All your network configuration will go away, but is better to setup that again than a not working Android Studio

这篇关于Android Studio无法启动,并显示错误“无法锁定系统文件夹".在macOS上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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