Android Studio : Config and system paths seem to be equal

标签 android android-studio

当我安装 Android studio 时,它启动时会显示此消息,退出时会显示此消息:

Config and system paths seem to be equal.

If you have modified 'idea.config.path' or 'idea.system.path' properties,
please make sure they point to different directories, otherwise please re-install the IDE.

我尝试重新安装它并取消注释 C:\Program Files\Android\Android Studio\bin 这个文件中的 .idea 文件中的路径,然后它就可以工作了但给出了一些其他错误:

您似乎正在使用“idea.system.path”属性来指定缓存目录的位置。在 2020.1 中,应用程序目录的默认位置发生了更改。为了兼容性,IDE 选择了旧的日志位置,但为了避免将来出现任何歧义(并消除此警告),请也设置“idea.log.path”属性。

知道我出了什么问题吗?

最佳答案

您可以在idea.properties文件中配置idea.system.pathidea.log.path

配置

  1. 按 Shift 键两次可打开“搜索无处不在”对话框。
  2. 在搜索框中输入“编辑自定义属性”
  3. 单击第一个选项以在编辑器窗口中打开 idea.properties

Edit Custom Properties

在编辑器窗口中,输入具有适当路径的属性。 请确保目录存在。

idea.system.path=e:/android/studio/caches

idea.log.path=e:/android/studio/log

保存并关闭文件。重新启动 Android Studio 以使更改生效。

定义 idea.system.pathAndroid Studio 的建议之一,用于将目录集移动到 %USERPROFILE% 之外以优化构建性能。

请引用https://developer.android.com/studio/intro/studio-config?utm_source=android-studio#antivirus-impact

关于Android Studio : Config and system paths seem to be equal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66658849/

相关文章:

android - 使用约束布局等距四个图像

android - 在 Android Studio 中启动模拟器时出现问题。

android - 无法解析 : recyclerview-1. 1.0 受影响的模块:app

android - Sony SmartWatch 2 Control 和 Notification 可以用于同一个应用程序吗?

android - 如何使用单个可聚焦 View 清除 fragment 中的焦点?

android-studio - 更新Android Studio时出现“如何解决“SSL对等设备错误关闭”的问题

android - 如何优化 Android Studio 中所有文件的导入

java - 安卓应用程序 : The Cache directory is empty but the device cache indicator shows that it is not empty

java - RoboGuice:使用全反射。尝试使用 RoboGuice 注释处理器以获得更好的性能

android - Kotlin/Native-> androidMain->无法解析的符号