Related
I can't open Android Studio 2020.3.1 Arctic Fox. On Kubuntu 20.04. An error pops up:
"Missing essential plugin:
org.jetbrains.android
Please reinstall Android Studio from scratch."
So far I have tried:
reinstallation + restart
Linux: ~/.local/share/Google/AndroidStudio4.2
rm -rf AndroidStudio4.2
rm -rf AndroidStudio2020.3
I tried to delete the file disabled_plugins.txt but for me, it does not occur.
I use toolbox-app.
UPDATE:
I installed a newer version- Android Studio 2021.1.1 Canary 6 everything is working fine.
I faced this issue on AndroidStudio2020.3 version on Mac OS and I resolved it by doing these below steps:
Go to /Users/username/Library/Application Support/Google/AndroidStudio2020.3
Give the "ls -l" command to see the list of files and check if the "disabled_plugins.txt" file is present
if present delete the file by running "rm -Rf disabled_update.txt" command and this should fix the Missing essential plugin error for android studio.
Launch android studio and it should be running smoothly now.
Go to ./.config/Google with cd ./.config/Google.
Remove AndroidStudio2020.3 with the command :
rm -r AndroidStudio2020.3.
Run ./studio.sh and now it should work correctly
Well, I am a linux user too, Ubuntu user.
Is their Ubuntu Software or any other Software Store in Kubuntu? If yes, try installing Android Studio from there.
On Macbook.
Followed the steps of ChandraGudimetla. Deleting the file did not work.
So I deleted the whole AndroidStudio directory. That worked.
i.e. Go to /Users/username/Library/Application Support/Google/AndroidStudio2020.3. [or whatever version is there]
From Majda post...for my version of AndroidStudio:
rm -r AndroidStudio2020.1
I had two versions Bumble and AndroidStudio4.1. Deleted both directories.
I installed VSC, Doctor and Android Studio, and I can run emulator without any problems, but I found there is a ! and two X when I run flutter doctor, what should I do next?
You are safe to ignore these if using VSC.
In VSC go to extension then download and install Flutter and Dart
Ignore this. Android Studio 4.x has problem plugin compatibility.
try to follow this steps
Uninstall the android studio flutter and dart plugins from the plugin window of android studio.(double click the shift button and search for plugins).
2.Restart android studio
3 run flutter doctor(and ignore the signs)
4 open android studio and reinstall the plugins
I am taking this erros with flutter doctor.I wrote 2 code to CMD and I broke my android studio dir.How can ı repair it ? Which 2 code I should write to CMD ?
I think you have tried installing the latest version of Android Studio (4.0.1) and version (1.22.1 or lower) of Flutter.
But Android Studio (4.0.1) moved the location of the .home file on Windows which is used to located the install directory.
You tried to fix the problem using the command:
flutter config --android-studio-dir = C:\Program Files\Android\Android Studio
Which unfortunately does not work because of empty space which breaks the tree structure
To resolve this, type the command below which will reset the default.
flutter config --android-studio-dir=""
and upgrade Flutter to version (1.22.2) to resolve Android Studio localization issue
Type this into the plugin:
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
Uninstall Android Studio and re-install it. After that install the Flutter and Dart plugins as mentioned here.
Install the Flutter and Dart plugins
To install these:
Start Android Studio.
Open plugin preferences (Configure > Plugins as of v3.6.3.0 or later).
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
To fix this error, open cmd and enter the codes below in order:
flutter channel dev
flutter channel updrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
This may fix your Studio and Flutter paths.
I was stuck with the same problem and whatever I did wouldn't solve the issue.
My advise to you would be
Run on separate command prompt window and not in Visual studio code integrated cmd terminal.
Remove flutter bin path from PATH environment variable and run the flutter command again from a cmd window with entire path. This solved my issue. After this step, I included flutter bin path into environment variable again.
try doing:
flutter config --android-studio-dir "C:\Program Files\Android\Android Studio"
As said by other developers running this command
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
that issue got resolved for me. I am running Microsoft windows 10.
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.
I've tried reinstalling Android Studio from scratch, as the error says, but nothing changes.
Just delete this file (or delete last disabled plugin(s) in this file):
C:\Users\%USERNAME%\.AndroidStudio<version>\config\disabled_plugins.txt
Update 10 Feb 2021:
If you couldn't find this address try this on windows:
C:\Users\%USERNAME%\AppData\Roaming\Google\AndroidStudio<version>\disabled_plugins.txt
Recently this Address transferred to here.
Update 04 August 2021:
If you are using windows 11
The App data folder is hidden and needs to be prompted(just search how to take out the missing app data folder in windows 11)
Then go to the same location as earlier mentioned and delete that file
On Mac OS
Open ~/Library/Application Support/Google/AndroidStudioXXXX.X
delete disabled_plugins.txt
restart Android Studio
For Windows users.
C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1\disabled_plugins.txt
Deleting this file will fix the issue.
More detailed information.
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.
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.
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
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
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.
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.
Library -> Application support -> Google -> AndroidStudio4.2 -> disabled_plugins.txt
For MAC Mojave
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)
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.
On Mac OS
in terminal helped to find bad files find ~/Library -name disabled_plugins.txt
in terminal run rm '/Users/xxxx/Library/Application Support/Google/AndroidStudio2021.2/disabled_plugins.txt'
Delete File
restart Android Studio
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
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...
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)
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).
I'm using Android Studio 4.0 from homebrew.
And delete this
/Users/[your_name]/Library/Preferences/AndroidStudio4.0/disabled_plugin.txt
in macOS Catalina 10.15, this file can be found at
/Users/{your_user_name}/Library/Application Support/Google/AndroidStudio4.1/plugins
Delete disabled_plugins.txt this contains all disabled plugins
This issue happens because of two reasons.
You disabled some plugins from Android Studio and Restarted.
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 !!!
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
find ~/Library -name disabled_plugins.txt
Ideally, the path would be: /Users//Library/Preferences/AndroidStudio4.x/disabled_plugins.txt
rm disabled_plugins.txt
Restart the Android Studio
for Android Studio AndroidStudio2020.3 just remove this file:
disabled_plugins.txt
from this path:
C:\Users\YOUR_USERNAME\AppData\Roaming\Google\AndroidStudio2020.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.)
only windows user
try this
it works for me
I am Deleting this file disabled_plugins.txt
C:\Users\ashif.AndroidStudio4.0\config
Solution is to delete disabled_plugins.txt.
On Linux, Android Studio 4.1 path is:
~/.config/JetBrains/AndroidStudio4.1
In mac os use Cmd+Shift+. to show hidden files and when find disabled_plugins.txt
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!
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
On Linux with Android Studio 4.1
it was another path for me, maybe this is the new format now?
~/.config/Google/AndroidStudio4.1
How to set gradle home while importing existing project in Android studio. While trying to import I need to set up this path.
The gradle plugin (which contains a bundled version of gradle) should be already installed in where/you/installed/android-studio/plugins/gradle so you shouldn't need to manually download it. Depending on the version of Android Studio, that last directory may be where/you/installed/android-studio/gradle/gradle-x.y.z (x.y.z is the version, so check your filesystem for the exact path).
If you intend on doing gradle development outside Android Studio or want a different version, you can download it separately and point it at that path, but if you only want to get Android Studio working with the bundled version, this path should do it.
For Mac OS, you can use the following -
/usr/local/opt/gradle/libexec/ or more generically - path/to/gradle/libexec/ - this is recommended. (the first path is what's achieved after installing gradle via Homebrew)
/path/to/android/studio/plugins/gradle - I don't recommend this because this version of Gradle might be out of date, and Android Studio itself might say it's incompatible.
You should be able to find it in C:\Program Files\Android\Android Studio\Gradle\Gradle 2.2.1. This is running Windows 7 64-Bit. Android Studio 1.0.2.
OSX (Less han two minutes)
Open terminal
Check if Gradle installed gradle --version, if so, goto step 4
If not brew install gradle and Goto step 2
Copy /usr/local/opt/gradle/libexec/
Paste it in Import Project Window in Android Studio > Gradle Home
Important, Celebrate!
Download Gradle http://www.gradle.org/downloads
Install
Set Gradle home to the install directory
On Linux run: whereis gradle.
For me it was /usr/lib/gradle/1.10.
I ran into same problem. I selected location C:\Program Files (x86)\Android\android-studio\plugins\gradle as Gradle Home
In Ubuntu 14.04 after $ sudo apt-get install gradle
I've got
$ whereis gradle
gradle: /usr/bin/gradle /usr/bin/X11/gradle /usr/share/gradle /usr/share/man/man1/gradle.1.gz
The path to Gradle was /usr/share/gradle
For Mac,
/Applications/Android Studio.app/Contents/gradle/gradle-3.2
Download Gradle as described above, but make sure you download version 1.9 and not the current release (1.11). I just had the same problem and downloaded the current release only to have Android Studio tell me it wasn't supported.
On Arch Linux I could not find it, so I added:
echo $APP_HOME
to /usr/bin/grade (found over which gradle)
The Install dir for me was /usr/share/java/gradle/
For migrating from eclipse to android studio
(Do not need to specify the Gradle home.)
Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
In the following dialog, leave Use gradle wrapper selected and click OK.
Try this for windows users
http://blog.blundell-apps.com/setting-up-android-studio-gradle-windows-7/
I tried byteit101's solution but whether I chose android-studio-path/plugins/gradle or android-studio-path/plugins/gradle/lib the IDE said it isn't correct.
Then I changed the gradle home to android-studio-path/gradle/gradle-x.x.x and it works.
Mac OSX / Linux
Step 1: Open terminal :)
Step 2: Open .bash_profile in vim to edit:
> vi ~/.bash_profile
Step 3: Add line:
> export GRADLE_HOME=/usr/local/opt/gradle
(for me it was this location, it can be different for u)
Step 4: Add line:
> export PATH="$PATH:$GRADLE_HOME/bin"
(to export bin directory of gradle)
Step 5: Verify by reopening the terminal or new tab, and check by echoing:
> echo $GRADLE_HOME
On Linux Mint 17 it was
/usr/share/gradle
for me
If you are on a Windows machine, go to the directory:
C:\Program Files\Android\Android Studio\gradle\
Click the gradle-4.4 folder from Android Studio\File\Settings, and then click the Apply button.
This is my solution on AndroidStudio/Idea for Mac
$ env | grep GRADLE
GRADLE_HOME=/usr/local/Cellar/gradle/2.6
GRADLE_USER_HOME=/Users/leon/.gradle
I used umake to install android studio. For me the path was
/home/user/.local/share/umake/android/android-studio/gradle/gradle-2.14.1
I had to use this
"C:\Program Files\Android\Android Studio\gradle\gradle-4.1"
Change the version if you have a different one.
I am using Lubuntu, I ended up finding it in :
/usr/share/gradle
Don't need to download or specify anything...
Just go to the install Android Studio plugins Path and search for any file like gradle-wrapper-x.xx.jar (x.xx = version number). Copy it to a subfolder of your project root folder named : gradle.
Example :
- file found gradle-wrapper-1.12.jar in plugins folder of Android Studio Install's path
- my project was on D:\android_repo\myProject
- created a folder into D:\android_repo\myProject\gradle
- copy gradle-wrapper-1.12.jar to this folder D:\android_repo\myProject\gradle
- import again my project and no more question about gradle.
In Windows
..\AndroidStudio2.0Beta6\android-studio\gradle\gradle-2.10
I've stumble across this question, trying to build an Ionic + Cordova app using Gradle from Android Studio installation, rather that installing Gradle separately.
On Centos, the Gradle binary was here: /home/YOURUSERNAME/.gradle/wrapper/dists/gradle-VERSION-all/CUSTOM_HASH/gradle-VERSION/bin
So, I've added export PATH=/home/maxim/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1/bin:$PATH to my ~/.bashrc and ionic cordova run android command worked just fine.
If you are on windows machine, go to the directory C:\Program Files\Android\Android Studio\gradle\ and click the gradle folder and apply it on
This worked.
C:\Program Files\Android\Android Studio\gradle\gradle-3.2
If you're using MacPorts gradle's home is:
/opt/local/share/java/gradle
For Ubuntu default version is /usr/lib/gradle/default.
In case of update, you don't need to reassign link in idea/studio.
For OSX, if going to Finder, navigate to this category: /usr/local/opt/ if you do not see gradle folder, install your grandle version manually:
https://services.gradle.org/distributions/gradle-5.4.1-all.zip
https://services.gradle.org/distributions/gradle-4.4.1-all.zip
If you are looking for specific Gradle version, simply change the version number from the zip links above, unzip and add that in the Gradle folder /usr/local/opt/gradle
If you are on a Windows machine, gradle home is located inside the installation folder of your Android Studio, usually at:
C:\Program Files\Android\Android Studio\gradle\gradle-5.1.1
Change the version if you have a different one.
On Windows it was
C:/Android Studio/jre