我正在使用Android Studio 3.0 Canary 1。我试图将其更新到Android Studio 3.0 Canary 2,但它显示以下错误:
Studio没有对/private/var/folders/mk/h5qpw_r11_7ggh9q52n9hhlr0000gn/T/AppTranslocation/1321881E-C41D-4AF7-B207-F31894226D50/d/Android Studio3.0Preview.app/Contents的写入权限。请由特权用户运行它以进行更新。
我甚至尝试过从命令行使用sudo运行Android studio:
sudo /Applications/Android\ Studio 3.0 Preview.app/Contents/MacOS/studio
但它并没有起作用。任何帮助都将不胜感激。
发布于 2017-05-27 16:01:22
我使用了错误的命令,应该如下所示:
sudo /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/MacOS/studio
发布于 2017-08-14 18:40:44
您是名为路径随机化的新macOS塞拉安全功能的受害者。在the relevant thread上阅读更多内容。摆脱这种只读随机路径的简单方法是使用Finder (不是命令行,也不是PathFinder,只是内置的Finder)将应用程序二进制文件移动到一个不同的文件夹(例如/Applications)。它会将应用程序移出隔离区。其他方法在前面的链接中有描述。
发布于 2019-02-08 00:18:10
如果你通过JetBrains工具箱安装了Android Studio,似乎你也会遇到这个问题。那么解决方案就是退出Android Studio,并通过ToolBox安装更新。
https://stackoverflow.com/questions/44213677
复制相似问题