238

I have just updated to Android Studio 4.1 Canary 9, but I am getting the following error:

Missing essential plugin:

  org.jetbrains.android

Please reinstall Android Studio from scratch.

Corrupted Installation

I've tried reinstalling Android Studio from scratch, as the error says, but nothing changes.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Arnyminer Z
  • 5,784
  • 5
  • 18
  • 32
  • There are several issues now on issuetracker for this incident: Some of them are: https://issuetracker.google.com/156047819 https://issuetracker.google.com/156048033 https://issuetracker.google.com/156047274 https://issuetracker.google.com/issues/155985454 – Roar Grønmo May 08 '20 at 18:24
  • 8
    Have the same issue – super annoying!!! They screw up about 10–15% of major/minor updates. I am tired of having to setup everything from scratch after another screw up. – inteist May 30 '20 at 17:20
  • @Arnyminer Z if you find my answer correct, please mark it as accepted answer. – Amir Hossein Ghasemi Oct 10 '20 at 09:12
  • 43
    Incident occurred to me when I click on "disable kotlin" from plugins list section - it was like i pressed an easy to access self-destruct button -_- – Rick Royd Aban Nov 23 '20 at 14:42
  • 9
    disable Kotlin was the problem here too. – carl Dec 15 '20 at 07:28
  • The same error when disable kotlin in android studio Arctic Fox 2020.3.1 – AminRah Nov 04 '21 at 13:03
  • 7
    I don't have the `disabled_plugins.txt` file anywhere on my system (MacOS Big Sur) – Roy Hinkley Nov 11 '21 at 19:54
  • 8
    How can they release such a thing, you click to disable a plugin and the whole program doesn't load anymore? disable the option to disable critical plugins or give instructions in the error message at least. – Ronen Festinger May 19 '22 at 18:05
  • 1
    # Just edit/delete this file: C:\Users\%USERNAME%\AppData\Roaming\Google\AndroidStudio\disabled_plugins.txt # Then restart the PC, if the message appears again. – fares hassan Sep 21 '22 at 11:04
  • This has got to be the new king of Android stupidity. I disabled a few of the plugins I know I don't need (not Kotlin), but instead of warning, Android Studio simply allows you to destroy the entire app with a simple uncheck behavior. So I deleted the disabled_plugins file and now instead of taking over 2 full minutes to open, Android Studio is currently at over 15 minutes and STILL not open, at which time I will have to begin the guessing game from scratch. Absolutely ABSURD. – rmirabelle Nov 13 '22 at 17:05

42 Answers42

358

2023/06 Update


Windows:

Just delete this file (or delete the last disabled plugin(s) in this file):

C:\Users\%USERNAME%\.AndroidStudio<version>\config\disabled_plugins.txt

If you can't find this address try this on Windows:

C:\Users\%USERNAME%\AppData\Roaming\Google\AndroidStudio<version>\disabled_plugins.txt

If you are using Windows 11 The App data folder is hidden and needs to be prompted(search how to take out the missing app data folder in Windows 11) Then go to the exact location as earlier mentioned and delete that file


macOS:

Delete or modify this file through this address:

/Users/%USERNAME%/Library/Application Support/Google/AndroidStudio<version>/disabled_plugins.txt

Linux:

Delete or modify this file through this address:

/home/%USERNAME%/.config/share/Google/AndroidStudio<version>/disabled_plugins.txt
Amir Hossein Ghasemi
  • 20,623
  • 10
  • 57
  • 53
  • 4
    the disabled_plugins.txt file may or may not be in this exact location. It could be in AndroidStudio4.0/codestyles or like in my case AndroidStudio4.0/. Wherever you find it, just delete it and you're good to go. – Rohit TP Jul 10 '20 at 12:13
  • 7
    This error occured when I disabled Kotlin. So I just removed the Kotlin package line from the file. There's no need to delete the whole file - many people disable plugins for better performance. They'd have to disable all of them again. – sanjarcode Oct 29 '20 at 22:17
  • 7
    better to just delete the "diable Kotlin" line in that file, if you wanna keep other plugins still disabled – carl Dec 15 '20 at 07:34
  • 1
    in my case it was located at C:\Users\user\AppData\Roaming\Google\AndroidStudio4.2 – Dave Jun 11 '21 at 20:22
  • In my case there was also an Update file I deleted both of them. It is ease to disable unwanted plugins. It is hare to find this problem. – BroPage Jul 19 '21 at 17:20
  • FWIW, ~/.config/Google/AndroidStudio2021.2/disabled_plugins.txt on Ubuntu 20.04. Obv check the release version embedded in the directory name. – Jobu May 28 '22 at 17:28
  • I don't have the disabled_plugins.txt file in the folder(s) that you refer to. I am on Win 10 and had started a new thread about this issue already about a months ago here --> https://stackoverflow.com/questions/76266649/android-studio-flamingo-2022-2-1-corrupted-unable-to-reinstall/76292143#76292143 but to no avail. None of the Flutter team dev seems to care or read in this forum and I am stuck unable to reinstall Android Studio. Is there anyone here, who can help? This is a serious bug I even posted on the issuetracker but after a months gone by there is still no answer on this. Anyone? Tnx. – themightyhulk Jun 19 '23 at 15:09
  • @themightyhulk for your issue, you need to remove your android studio completely and remove the configs as well, then reinstall a fresh version of your android studio – Amir Hossein Ghasemi Jun 21 '23 at 09:53
100

On Mac OS

  1. Open ~/Library/Application Support/Google/AndroidStudioXXXX.X
  2. delete disabled_plugins.txt
  3. restart Android Studio
Tushar Asodariya
  • 629
  • 2
  • 7
  • 20
Tony Morconi
  • 1,109
  • 1
  • 5
  • 2
  • 82
    In my case next command in terminal helped to find bad files `find ~/Library -name disabled_plugins.txt`. I found file `~/Library/Application Support/Google/AndroidStudio4.1` – Alexandr Shkurko Oct 13 '20 at 08:07
  • 11
    path is more accurately defined as Users/[your_name]/Library/Application Support/Google/AndroidStudio_xxxx – Johann Jun 08 '21 at 09:53
  • 3
    CHECK location /Library/Application Support/Google/AndroidStudio4.X If the AndroidStudio folder is not present at this location /Users//Library/Preferences/ – Manish Rajpurohit Aug 19 '21 at 07:12
  • In my case, I've disabled several plugins on my own before it stopped working, so I edited the "disabled_plugins.txt" file to only remove the unnecessary lines. – V Surya Kumar Feb 11 '22 at 17:24
  • Thanks @Johann Mainsh Rajpurohit too your comment worked for me – VVB Jun 24 '22 at 05:39
  • Note that, if you remove entries from the `disabled_plugins.txt` you might still face the error. Because, some of the dependent modules will be disabled still. IntelliJ shows a warning when you disable it from IntelliJ preference. You lose that benefit when manually editing the file. I delete the file and then manually disable them again from the IntelliJ interface. – SilleBille Oct 10 '22 at 19:45
  • legend thanks in detail open terminal and run these commands cd ~/library/application\ support/google then for listing folders and files run ls and find your android studio version after that change directory to your android version AndroidStudioXXXX.X – Sultan Jan 13 '23 at 12:13
86

For Windows users.

C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1\disabled_plugins.txt

Deleting this file will fix the issue.

More detailed information.

wonsuc
  • 3,498
  • 1
  • 27
  • 30
  • 1
    Maybe it changed over time, but now this is the correct answer. Also, you could edit it instead. – android developer Nov 08 '20 at 15:24
  • 1
    Worked for me. In my case it was in C:\Users\\AppData\Roaming\Google\AndroidStudio4.1 – Amresh Nov 10 '20 at 22:05
  • 1
    There were other files with the same name in the .android directory. I kept deleting those files which didn't work for me initially. But the file in the directory specified here was the one that solved the problem for me. – user1874354 Dec 11 '20 at 04:38
48

As the Known Issues section of the Android Studio 4.1 Preview page notes, if you are getting this error in Android Studio 4.1 Canary 9, it means that you have a locally installed Kotlin plugin that is not compatible with the new IDE.

To resolve it, you should delete the Kotlin folder from the following locations (from the above linked page), depending on your operating system:

Linux: ~/.local/share/Google/AndroidStudioPreview4.1

Windows: C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1

macOS: ~/Library/Application Support/Google/AndroidStudioPreview4.1

For Linux and macOS, ~ refers to your home directory, and a directory can be removed from the command line (Terminal) with rm -rf directory_name_here.

There is no need to install a replacement Kotlin plugin, as it is bundled in that version of Android Studio.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
42

On Linux (Fedora release 30), the issue happened after I wanted to disable Kotlin features during installation. I could resolve it by removing configure files:

rm -r ~/.config/Google/AndroidStudio4.1

Or just remove the disabled_plugins.txt file:

rm  ~/.config/Google/AndroidStudio4.1/disabled_plugins.txt

Sometimes you are compelled to re-extract your android-studio on your Linux machine. Notice that removing ~/.local/share/Google/AndroidStudio4.1/ directory did not help me.

Elyas Hadizadeh
  • 3,289
  • 8
  • 40
  • 54
31

Disabling the Kotlin plugin for Android Studio 4.x causes this problem and you can't open the Android Studio until enable the Kotlin plugin again. To re-enable plugins without opening Android Studio, you can delete or edit the disabled_plugins.txt file from your Android Studio configuration path.

For Linux distros, the default configuration directory is ~/.config/Google/AndroidStudio4.x/

So deleting disabled_plugins.txt will enable all of your disabled plugins and solve your problem.

rm ~/.config/Google/AndroidStudio4.1/disabled_plugins.txt

For macOS, the default directory is ~/Library/Application Support/Google/AndroidStudio4.x

rm ~/Library/Application\ Support/Google/AndroidStudio4.1/disabled_plugins.txt
iamdual
  • 1,251
  • 14
  • 11
  • for Mac? I can't find the file there – Dani Mar 09 '21 at 22:27
  • 1
    For Mac, it should be `~/Library/Application Support/Google/AndroidStudio4.x` – iamdual Mar 09 '21 at 22:31
  • every time I open it says "The plugin org.jetbrains.kotlin failed to save settings and has been disabled. Please restart Android Studio" and I need to remove or edit this file again. When I try to open the Preferences it doesn't do anything – Dani Mar 09 '21 at 22:44
  • Try to remove entire `AndroidStudio4.1` directory. – iamdual Mar 09 '21 at 22:49
  • Yeah, that worked again but I don't know what happened with some of the plugins I had install. Now everything is broken. Now sure why this happened – Dani Mar 09 '21 at 22:56
  • In google directory look for the version of android studio, which you are using +1 – Alok Vishwakarma Aug 13 '21 at 05:07
14

2022 - for MacOs Catalina:

Finder / Users / *your_username / Library / Application Support / Google / AndroidStudio20021+ / disable_plugins.txt /

find and delete this line "org.jetbrains.kotlin" or delete the line causing your problem

serif
  • 199
  • 2
  • 12
  • Thanks, this solved it for me! Does anyone have any idea what caused this? Maybe Google or JetBrains need to fix something on their end. Very annoying. – Johan Paul Oct 20 '22 at 08:14
11

On Linux, when disabling all plugins, this may happen (Artic Fox). The path is (or may be):

~/.config/Google/AndroidStudio2020.3/disabled_plugins.txt

Commenting out entries with a # is possible, in order to leave specific plugins disabled.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
9

I'm using Linux Ubuntu 18.04 and Android Studio 4.0 and I found disabled_plugins.txt file in this directory:

/home/[your_username]/.AndroidStudio4.0/config

and after that I found I've put Kotlin plugin at the end of file. Just remove that line, Android Studio will work. By the way, on any other OS, you can find your file just by searching disabled_plugins.txt.

AMK
  • 662
  • 6
  • 16
  • hey you know why this error occur "Unable to load class 'org.jetbrains.kotlin.gradle.AbstractKotlinGradleModelBuilder'." @AMK – Prajna Jul 19 '20 at 06:45
  • Sorry for my too late answer but after a little searching, I found two reasons may make so: 1-Android Studio caches 2-Probably bugs in your android studio version Did you check them? What's the result? – AMK Aug 17 '20 at 16:32
7

For Windows users

C:\Users\Admin[if you have username].AndroidStudio4.0\config

There you can find disabled _plugins.txt delete it and restart android studio

7

Library -> Application support -> Google -> AndroidStudio4.2 -> disabled_plugins.txt

For MAC Mojave

Sayali
  • 132
  • 1
  • 5
7

For MacOS BigSur

Root/Users/{your_user}/Library/Application Support/Google/AndroidStudio{version}/disabled_plugins.txt

Searching for the file won't work.

Gain access to root through Shift+cmd+g

Show hidden files using Shift+cmd+. (Library will most likely be hidden inside your user folder)

Codelicious
  • 604
  • 10
  • 12
7

Got to C:Drive and delete disabled_plugins.txt file

C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioVersion\disabled_plugins.txt

If you don't find watch this video https://youtu.be/sMzAw6xaiZU that I made.

cigien
  • 57,834
  • 11
  • 73
  • 112
Azmat Ali
  • 554
  • 5
  • 7
  • When linking to your own site or content (or content that you are affiliated with), you [must disclose your affiliation _in the answer_](/help/promotion) in order for it not to be considered spam. Having the same text in your username as the URL or mentioning it in your profile is not considered sufficient disclosure under Stack Exchange policy. – cigien Jan 04 '22 at 13:11
7

On Mac OS

  1. in terminal helped to find bad files find ~/Library -name disabled_plugins.txt

  2. in terminal run rm '/Users/xxxx/Library/Application Support/Google/AndroidStudio2021.2/disabled_plugins.txt'

  3. Delete File

  4. restart Android Studio

Yousif khalid
  • 5,801
  • 3
  • 18
  • 23
6

It seems you disabled your plugins before, so find and edit

disabled_plugins.txt

and delete the plugin you want to enable it.

In windows, the location of file is :

C:\Users\<UserName>\AppData\Roaming\Google\AndroidStudio...
5

Removing these from disabled_plugins.txt fixes the issue if you have disabled some of the plugins. Instead of adding back all the plugins, specify the plugins to enable:

groovy, smali, kotlin, junit // (i.e: Enable these)
Elletlar
  • 3,136
  • 7
  • 32
  • 38
Pranav Kapoor
  • 107
  • 1
  • 5
5

enter image description here

C:\Users\Dell\AppData\Roaming\Google\AndroidStudio4.1

and then delete >>>> disabled_plugin.txt

At the place of Dell, you can place your user name or device name(Example - Dell, Lenovo etc).

Tomer Shetah
  • 8,413
  • 7
  • 27
  • 35
tipu sultan
  • 187
  • 3
  • 5
  • 1
    That worked for me. Also you can use this link as it would automatically fill path in windows explorer. C:\Users\%username%\AppData\Roaming\Google\AndroidStudio4.1 – Dilroop Singh Jan 12 '21 at 00:59
4

I'm using Android Studio 4.0 from homebrew. And delete this

/Users/[your_name]/Library/Preferences/AndroidStudio4.0/disabled_plugin.txt
futabooo
  • 121
  • 1
  • 2
4

This issue happens because of two reasons.

  1. You disabled some plugins from Android Studio and Restarted.
  2. Some Plugins disabled by any thread and you starts getting missing essential plugin org.jetbrains.android this error message.

Solution is simple.

C:\Users\Numan\AppData\Roaming\Google\AndroidStudio4.1

Just go to the latest Android Studio Version, and find the text document file named as disabled_plugins. Now open it, and delete the lines which you think has been disabled, or otherwise delete the complete disabled_plugins file and open the Android Studio. You can also search disabled_plugins in your C Drive, and one text file will appear in case you're unable to locate it from AppData.

It Works - Cheers !!!

Numan Gillani
  • 489
  • 9
  • 19
3

in macOS Catalina 10.15, this file can be found at /Users/{your_user_name}/Library/Application Support/Google/AndroidStudio4.1/plugins

Naresh Kaushik
  • 302
  • 1
  • 3
  • 10
3

Delete disabled_plugins.txt this contains all disabled plugins

enter image description here

Mohit Singh
  • 1,402
  • 1
  • 10
  • 19
3

Error Reason: This issue occurs after disabling one or more plugin (example: Kotlin) from Android Studio 4.x settings (Android Studio -> Preferences —> Plugins —> Uncheck the Kotlin plugin -> Apply -> Ok —> Restart the Android Studio ==> ERROR prompt

Solution (Mac Specific): Remove the “disabled_plugins.txt” file

  1. find ~/Library -name disabled_plugins.txt
 Ideally, the path would be: /Users//Library/Preferences/AndroidStudio4.x/disabled_plugins.txt
  2. rm disabled_plugins.txt
  3. Restart the Android Studio
Akki
  • 775
  • 8
  • 19
3

For Android Studio 4.2+ this happens when you disable the Properties Pluggin or Groovy Plugin, you can remove these entries from the disabled_pluggins.txt. For Windows users the file is located at:

C:\Users\{username}\AppData\Roaming\Google\AndroidStudioPreview4.X\disabled_plugins.txt

Provide your username in the {username} field in the above address, alternatively, you could just delete this file as the other answers mention!

Zoe
  • 27,060
  • 21
  • 118
  • 148
Dev Sebastian
  • 587
  • 6
  • 11
3

All answers related with disabled_plugins.txt is right, but it is enough to just delete the line (it is not necessary to delete this file. Thus, previously disabled plugins will remain disabled.) enter image description here

kirkadev
  • 355
  • 4
  • 10
3

for Android Studio AndroidStudio2020.3 just remove this file:

disabled_plugins.txt

from this path:

C:\Users\YOUR_USERNAME\AppData\Roaming\Google\AndroidStudio2020.3
DolDurma
  • 15,753
  • 51
  • 198
  • 377
2

only windows user try this it works for me I am Deleting this file disabled_plugins.txt

C:\Users\ashif.AndroidStudio4.0\config

Ashif
  • 441
  • 5
  • 12
2

Solution is to delete disabled_plugins.txt.

On Linux, Android Studio 4.1 path is:

~/.config/JetBrains/AndroidStudio4.1
Rushi M Thakker
  • 679
  • 2
  • 15
  • 34
2

In mac os use Cmd+Shift+. to show hidden files and when find disabled_plugins.txt

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Evgenii
  • 105
  • 1
  • 9
2

If you are using JetBrains Tool Box to install just find the disabled_plugins.txt file on the path below: C:\Users[YOUR USERNAME]\AppData\Roaming\Google\AndroidStudio2021.1

agega
  • 157
  • 3
  • 13
2

the same issue happened for me when i disbaled the Groovy, Kotlen, C and C++ using Android Studio Dolphin 2021.3.1 in windows 10 Enterprise LTSC 64bis, and i have solved the problem by closing Android Studio then deleting the file below:

C:\Users[your user name]\AppData\Roaming\Google\AndroidStudio2021.3\disabled_plugins.txt

then reopening Android Studio, also i did Repair IDE from File menu

1

On Linux with Android Studio 4.1

it was another path for me, maybe this is the new format now?

~/.config/Google/AndroidStudio4.1

phrogg
  • 888
  • 1
  • 13
  • 28
1

I had the same issue due to disabling Kotlin plugin.

Fix was as simple as removing the Kotlin line from ~/.config/Google/AndroidStudio4.1/disabled_plugins.txt.

code2be
  • 1,358
  • 1
  • 10
  • 15
1

You can also try the following directory:

  • Search for %appdata% in the windows search bar
  • Google\AndroidStudio4.1
  • delete disabled_plugins.txt
Sammi Lin
  • 69
  • 4
1

Ok, none of the above worked for me, and I was actually going quite insane... Until I finally found THIS video:

https://www.youtube.com/watch?v=0MbXG8qwmMA

and realized that I'd been deleting in the WRONG .AndroidStudio directory!! There is a .AndroidStudio4.0 folder in the path described in other answers here, and I just didn't look carefully enough at the name... Because of course, my Android Studio version is 4.1, not 4.0! And they've moved those files to a different location, which is probably why this problem arises in the first place...

So my correct location of the error-causing file is now:

C:\Users\...\AppData\Roaming\Google\AndroidStudio4.1\disabled_plugins.txt

Try it, or otherwise just look for a folder with the correct version name in it, or just search your entire user directory for the file name! My Android Studio works again now!

Karolina Hagegård
  • 1,180
  • 5
  • 26
1

I had the same issue due to disabling the kotlin plugin.

Solution:

C:\Users\username\AppData\Roaming\Google

C:\Users\username\AppData\Local\Google

Delete the entire google folder at these two locations then it will work and This solution works for me.

1

For MAC Monterrey:

rm -rf /Users/[*your_user*]/LibraryApplication\ Support/Google/AndroidStudio2021.3/disabled_plugins.txt

Carlos Daniel
  • 2,459
  • 25
  • 30
  • It works for me, but I had another folder name (`AndroidStudio2022.2`). Probably, when you read this comment you might also have a newer version of Android Studio – A.N.R.I May 24 '23 at 06:52
0

Android Studio 4.1.1

I have disabled some plugins (trying to speed up Android Studio) and got this error message above.

So I opend a file explorer, enable hidden files and navigate to:

C:\Users\myUserName\AppData\Roaming\Google\AndroidStudio4.1

and deleted the txt file disabled_plugins

Now Android studio works.

Avital
  • 549
  • 5
  • 15
0

I solved it by deleting the files in the following folder: ...\AppData\Roaming\Google\AndroidStudioPreview2020.3\plugins
probably a problem on some plugin, kotlin in my case Restart android Studio (ArtFox canary version)

0

For me, it happened because I disabled JUnit. You should not disable basic android studio plugins.

so remove those plugins from disabled_plugins.txt under the following directory for windows

C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio_your_version\disabled_plugins.txt

and removed basic android plugins names from there.

For me, it was under

C:\Users\mirza\AppData\Roaming\Google\AndroidStudio4.2

If you are not sure how many and which plugin you should remove then do a trial and error method, which mean removing one plugin from the file and starting an android studio. Do this until the studio starts without andy error

Mirza Ahmed Baig
  • 5,605
  • 3
  • 22
  • 39
-1

I found this solution helpful after upgrade to Android Studio Arctic Fox 2020.3.1 Canary 2 from Jetbrains Toolbox.

Navigate to user -> make Library package visible(it's hidden in most cases) -> Application support -> Google -> delete the old directories of android studio

Denis
  • 2,622
  • 3
  • 22
  • 24
-1

This seems to happen when you try to install the provided plugin when upgrading to AS2020.3.1.5. But I can't find the suggested disabled_plugin.xml in the folder C:\Users\[your_name]\AppData\Local\Google\AndroidStudioPreview2020.3.

Anyhow, I am still able to open the previous 2020.3.1.x version, so it may be stored somewhere else... (since theese two versions are using the same Library/Application Support/ path).

Roar Grønmo
  • 2,926
  • 2
  • 24
  • 37
-1

It seems there are many sources of this problem. I had the issue with Android Studio 2020.3.1 Canary 5. All was fine using 2020.3.1 Canary 4, despite both using the same configuration files.

In my case the offender was the Kotlin folder located at:

C:\Users<UserName>\AppData\Roaming\Google\AndroidStudioPreview2020.3\plugins

I note an earlier answer has the Kotlin folder at the level where in my case the 'plugins' folder was located. I moved the folder out, started and finally Canary 5 started.

Starting Canary 4 again recreated the folder and reported 'corrupt installation', and made the problem return. But removing the folder again allowed Canary 5 to run again.

innov8
  • 2,093
  • 2
  • 24
  • 31