20

Yesterday I was updated my Android Studio version to stable version 3.0 then I am started getting this errors in my studio and unable to build the app.

Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio

But I forcefully enabled all plugins in my Studio by going to File-->Settings-->Plugins --> All are enabled.

I tried by deleting .AndroidStudio/* folder as suggested here and here

I tried by Invalidate and Restart and Enable Android Support as suggested here

And also tried by uninstalling studio and reinstalled latest stable version 3.0 one from here

But none of them are working, Can any one suggest me any alternate solution for this.

Thanks in Advance..

Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138

12 Answers12

6

Finally, I resolved by creating new Android project and moved my all files into it. This issue got because of existing settings in the old project.

It may useful for someone.

Update:

Go to File--> Project Structure --> Check Use Embedded JDK (Recommended)

Ref:enter image description here

Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
  • 3
    Yeah, well this is NOT what I want to hear. I want to hear an EASY way to fix AS 3.0.1's (several) problems. – DSlomer64 Jan 02 '18 at 14:16
  • This was similar to the first of several problems I had. I don't recall jetbrains being mentioned. I had upgraded to 3.0.1 and on came the errors. I don't remember how I got rid of this error. I think I did what it said: Exit and restart AS. Then came other error messages. In the long run, I got errors about `facets` and a bunch of `plugins` that couldn't run because Android Studio plugin couldn't run. I couldn't get to File > Settings. Gradle listed all the plugins that wouldn't load and had a link about a "balloon" at the bottom of the list. I clicked it, enabled AS plugin, ajd all was well. – DSlomer64 Jan 04 '18 at 03:45
  • Got this problem after updating today, then side installing 3.1.4. Mine is already checked so I don't think it's the embedded – behelit Sep 13 '18 at 04:45
  • @behelit have you tried `by creating new Android project and moved my all files into it`? – Shailendra Madda Sep 14 '18 at 09:33
4

Faced the same problem on v3.5.3. Resolved by deleting .idea folder.

yaugenka
  • 2,602
  • 2
  • 22
  • 41
  • This is common when you copy a project folder from windows to mac for example. Removing the .idea folder regenerates it with ideal environment variables – axetroll Mar 12 '20 at 03:47
3

@DSlomer64

I found an easier way.

Instead of 'creating new Android project and moved my all files into it' as Shylendra Madda did, I merely deleted the .idea folder.

1) Go to File--> Settings -->Plugins Disable any plugins not loaded (i.e. red in color)

2) Enable the one plugin, Android Support

3) Right-click on your 'app' directory (contains your module gradle.build file) in Android Studio and select 'Show in Explorer' --- this opens that directory.

4) Quit Android Studio. Get out of any and all instances of Android Studio to allow you to then delete the fold, .idea, in that directory.

5) Restart AS, you'll notice the project will not come up -- you'll have to pick in the dialog window that appears. That's ok. Pick it, and it will 'rebuild' the folder, .idea.

6) Go to File--> Settings -->Plugins Enable any and all plugins

7) You won't get the message ever again... ;)

Cheers.

Andrious Solutions
  • 706
  • 1
  • 7
  • 23
3

I had an issue related to the antivirus:

  1. If you want to do it the easy way: Windows Defender>Virus & Threat protection>Ransomware Protection> Unable the protection.
  2. If you want to do it the best way (considering your security): Windows Defender>Virus & Threat protection>Ransomware Protection> APP through monitored folder access> Add allowed APP> last blocked app> Add the Studio64/Studio.exe (You need to enable hidden folders in order to open ProgramData) Then, go to your Windows Explorer C:\ProgramData\Microsoft\Windows Defender\Scans\History Delete everything in that folder.
  3. Check if your project's folder is in the exclusions folder. Windows Defender> Virus & Threat protection> Virus & threat protection settings> Add or remove exclusions. Android Studio should work fine now :D.
MarlonDSC
  • 189
  • 3
  • 4
  • I am able to resolve this issue by disabling Ransomware protection (controlled folder access) in Windows 10. – Harsh Nov 01 '21 at 10:01
2

I think this problem is because your project in a drive that you don't have sufficient permissions to access. I faced that problem so I recreate my project in home directory (Ubuntu) instead ntfs drive and the problem is gone.

Bahaa Salaheldin
  • 515
  • 1
  • 7
  • 16
2
  1. Go to the Windows Defender Security Center.

  2. Click on Virus & threat protection → Ransomware Protection.

  3. Disable the radio button:

double-beep
  • 5,031
  • 17
  • 33
  • 41
1

For me, because I installed the plugin that cause my AS error. mine AS 4.1.

How to trace the plugin issue

  1. First, go to idea.log, it is located at AppData\Local\Google\AndroidStudio4.1\log or you can use help -> show log in explorer

  2. Check what cause the error, for me it is because plugin i installed from balloon tip for my NDK project (Android.MK) it is called dockdockgo. here is the error I got

    java.lang.NoClassDefFoundError: Could not initialize class name.kropp.intellij.makefile.MakefileTargetKeyIndexKt
    
  3. After you got what makes you AS problem then delete the plugin at AppData\Roaming\Google\AndroidStudio4.1\plugins

I have check that the plugins cause AS freezing from here and here. Lesson learned, never install plugin recommendation from balloon tips unless you have do some research with the plugins first.

Yohanim
  • 3,319
  • 9
  • 52
  • 92
0

You can try this:

  • Rename the folder where the project is in
  • Open the project in Android Studio (now you'll have to browse for it)
  • Wait until it's synced and close the project
  • Rename the folder back to original

That solved it for me. Just deleting the idea folder and invalidating caches did not solve the problem.

Martin B
  • 337
  • 4
  • 9
0

In my case it was the .idea\workspace.xml file that was not saved properly (presumably). There were two files: workspace.xml and workspace.xml~

I just renamed: workspace.xml to workspace-old.xml and workspace.xml~ to workspace.xml

And things were back to normal.

Dave Enstrom
  • 105
  • 7
0

On MacOS: Open

  1. Terminal
  2. cd your_project_folder
  3. sudo chmod -R 777 ./

That means you are giving full permission to your project folder. You can modify permission level like 644, 755 etc.

XpressGeek
  • 2,889
  • 3
  • 23
  • 27
0

I had this problem with the latest android studio 4 ( AUG 2022) on MAC!

  1. delete build files app>build and root build and .idea and .gradle

  2. rename the project directory

  3. open another project and after that open your project again in a new window.

Sana Ebadi
  • 6,656
  • 2
  • 44
  • 44
  • I faced it too. Turns out, all the local code change I made, were gone. It reverted to an older git state. Thankfully I was able to revert it back. – Udayaditya Barua Aug 09 '22 at 10:46
0

I found the answer at C:/user/yourPCname/.android/debug.keystore.lock

if the size of this file is 0KB, just delete it and you will be fine.

Apostolos
  • 10,033
  • 5
  • 24
  • 39