Mac 中的 Android Studio 路径错误

标签 android macos android-studio

我在打开 Android Studio 时遇到此错误:

System path '/Users/username/Library/Caches/AndroidStudio2.1' is invalid. If you have modified the 'idea.system.path' property please make sure it is correct, otherwise please re-install the IDE.

我该如何解决?

最佳答案

我通过执行以下操作解决了这个问题:

  • 打开“应用程序”文件夹

  • 右键单击 Android Studio,然后选择“显示包内容”

  • 导航到“bin”文件夹

  • 用文本编辑工具打开“idea.properties”文件,将这个属性添加到文件底部:

    idea.system.path='/Users/MacName/Library/Caches/AndroidStudio3.1'

    然后保存文件。

再次运行 Android Studio,它应该可以工作了。

关于Mac 中的 Android Studio 路径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38342984/

相关文章:

macos - 如何更改 OSX 中的视网膜显示系统首选项?

添加 pdfview 库时 Android Studio 构建失败

android listview 在顶部加载以前的帖子按钮

android - 如何在没有用户输入的情况下创建 Android RFCOMM 套接字?

android - 单击复选框时如何添加确认框?

macos - "ps aux"有效,但 "ps -aux"无效

android - 交易ID设置正确,但稍后只显示一个提交

cocoa - NSTextField 和 NSComboBox 在 Lion 中绘制方式不同

android - 错误 : when I replace compile with implementation in gradle(dependency)

java - Android Studio Gradle 未构建示例应用程序