Android Studio “Unable to save plugin settings”

后端 未结 14 2398
甜味超标
甜味超标 2020-12-05 04:13

When I opened android studio today, it showed me the following errors: \"Error

相关标签:
14条回答
  • 2020-12-05 04:32

    Got this problem recently with Android Studio 1.3 and 1.4.2 (beta). This was caused by an OutOfMemoryError in the Java heap.

    I solved it by increasing the -Xmx and -XX:MaxPermSize values in the studio.vmoptions file

    0 讨论(0)
  • 2020-12-05 04:34

    TL;DR
    I finally fixed it by removing .idea/workspace.xml and reenabling plugins worked.

    Same issue happened to me when I installed AS 3.1 beta alongside AS 3.0.1(stable) and opened my project in it. It was ok for few sessions, until it wasn't. Can't figure out what exactly broke project configuration, but project would open in 3.0.1 and not in 3.1. Any other project would work on 3.1 too. Symptoms were the same: android support plugin is disabled, and it wouldn't enable. I tried invalidating caches, reinstalling AS (even 3.1 stable version won't work).
    Eventually I noticed projectBackup and projectBackup2 folders created by studio in the project's root folder. They contained versions of workspace.xml file. So I removed these backup folders, and workspace.xml from .idea folder. Then studio asked to reload project and that's it - after that I could reenable all the plugins

    0 讨论(0)
  • 2020-12-05 04:38

    I have solved this problem this way:-

    1. Go to File >> Invalidate caches/restart >> Invalidate and Restart
    2. After restarted, If warning comes just click on Enable Android Support
    0 讨论(0)
  • 2020-12-05 04:38

    In android studio Go to file->settings->plugin-> enable androidsupport

    0 讨论(0)
  • 2020-12-05 04:43

    For my case this seems to be a rights issue. When starting Android Studio with admin rights no problems occur.

    Re-enabling the plugins as admin and starting AS again with my default user does not help.

    Edit

    I updated to the latest canary. With the admin user I've installed AS. I completly removed .AndroidStudio/config, .AndroidStudio/system and .AndroidStudio/plugins beforehand (I use a different location for these files, so I have to replace idea.properties after every installation. While doing this, I've noticed, that they renamed .AndroidStudio to AndroidStudio.2. That gave me the hint to remove those dirs.) After this, I had no problems, regardless of which User ran AS.

    0 讨论(0)
  • 2020-12-05 04:45

    If you are getting "Unable to save plugin settings" or "unable to save settings" Error window,

    and you have tried all of the other solutions listed here, but they don't work for you, try the following:

    1. Invalidate Cache: but don't select restart yet, select just "invalidate".
    2. Close project and then exit Studio
    3. If you have a previous backup of your Settings folder, restore it now. If not, you will need to Delete your settings folder. For example, in Windows:

    / < USER_HOME_DIR >/.AndroidStudioPreview3.2

    or on Mac :

    /Users/<USER_NAME>/Library/Preferences/.AndroidStudioPreview3.2
    
    1. Delete the .idea folder for your project
    2. Re-launch Android studio, but this time select import project

    Android Studio will re-index your project, but now the error will be gone. After Android Studio has completed a Gradle Sync, it's probably a good idea to also make a backup of the settings folder

    0 讨论(0)
提交回复
热议问题