android-studio-2.3 - Android Studio - 更新到 2.3 - Studio 没有写入权限

标签 android-studio-2.3

我以前没有遇到过这个问题。当我尝试将 Android Studio 更新到 2.3 时,我得到以下信息:

Studio does not have write access to /private/var/folders/00/n4yy8fsx0njck05bfll1t3_w0000gn/T/AppTranslocation/2D9E214E-60BE-41D9-9843-3536E011FD7E/d/Android Studio.app/Contents. Please run it by a privileged user to update.

我所在的帐户是管理员帐户,我还尝试授予对该目录的完全访问权限。

chmod -R 777 /private/var/....

但没有任何效果。任何帮助将不胜感激。

最佳答案

我也遇到了同样的问题。通过从命令行使用 sudo 运行 Android studio 解决了这个问题:

sudo /Applications/Android\ Studio.app/Contents/MacOS/studio

下载更新后,您必须再次运行该命令,以便 Android studio 复制正确的文件。

下次您使用非特权用户运行 Android studio 时,它应该被更新。

关于android-studio-2.3 - Android Studio - 更新到 2.3 - Studio 没有写入权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42623366/

相关文章:

android studio从2.3稳定版更新到3.0后构建工具失败

android - 为什么 Visual Studio 2017 无法运行 Android 模拟器? (给出错误 ANDROID_SDK_ROOT 丢失)

java - 运行 Android 模拟器时如何修复 GPU 驱动程序问题错误

java - 我的 Android Studio 中没有显示 Android 设备

android - 错误 : package com. android.annotations 在 android studio 2.3.1 中不存在

java - 升级 firebase-crash 导致构建 apk 时出错

android - 在 Android Studio 2.3 中使用缓存

google-app-engine - "cannot find symbol method setBatchPath(String)"在生成端点的生成源中

gradle - 错误:null value in entry: aaptFriendlyManifestOutputFile=null

Android Studio 2.3 不显示异常堆栈跟踪