自一月份以来,我一直在 Windows 7 上运行 Android Studio,直到今天才执行更新。上周我开始遇到一个问题,每次我尝试运行我的应用程序时,AS 都会导致我的计算机崩溃,所以我决定最终不再忽略告诉我有可用更新的弹出窗口。从 Android 网站下载并运行该文件后,我看到大量错误消息,大致如下:
Unable to save settings. Failed to save settings. Please restart Android Studio
和
Cannot load settings from file ' (several different files have been listed) ': content truncated File content will be recreated"
和
Plugin Error Problems found loading plugins: Plugin "Android Support" was not loaded: required plugin "Gradle" is disabled. Plugin "SDK Updater" was not loaded: required plugin "Gradle" is disabled. Plugin "Android NDK Support" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Cloud Testing" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Services" was not loaded: required plugin "Gradle" is disabled.
除了打开现有项目时似乎没有加载任何文件(这意味着我无能为力)之外,所有这些都可能会被忽略。
所以基本上我现在的情况比以前更糟。
多次重启Android Studio仍未解决问题。我还清除了缓存并尝试根据另一个 stackOverflow 问题的建议删除旧的 .AndroidStudio 文件,但无济于事。谁能帮我解决这个问题吗?
最佳答案
我找到了解决方案
Cannot load settings from file ' (several different files have been listed) ': content truncated File content will be recreated"
只需从 C:\Users\Username\.AndroidStudio1.3\config\options
删除 recentProjects.xml
它对我有用。
关于Android Studio 更新 1.3.0 后无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31757260/