mac 上的AndroidStudio环境,从SVN down代码的时候,出现了这个错
解决方案是: https://www.cnblogs.com/songxing10000/p/4805881.html 。但是照着打完命令后报如下错误,意思是必须得获取管理员权限,这时候就要用su命令root,和sudo执行单条命令:
xingjunchaodeMacBook-Air:~ xingjunchao$ xcode-select -switch /Applications/Xcode.app/Contents/Developer
xcode-select: error: --switch must be run as root (e.g. sudo xcode-select --switch <xcode_folder_path>).
完整命令记录:
xingjunchaodeMacBook-Air:~ xingjunchao$ su
Password:
su: Sorry
xingjunchaodeMacBook-Air:~ xingjuncha