Related
I have changed studio64x.vmoptions file to make studio faster but ever since I made change, android studio is not opening. it shows error about JAVA_HOME environment variable but I already have added that. please help!
tried reinstalling android studio, adding Java_Home , deleting studio64x.exe.vmoptions. still not opening
I was able to resolve the same issue (Android Studio was not opening) by refer to the solution provided in Android Developer Portal,
Studio doesn't start after upgrade
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin. As a workaround, try deleting (or renaming, for backup purposes) the directory below, depending on the Android Studio version and operating system, and start Android Studio again. This will reset Android Studio to its default state, with all third-party plugins removed.
For Android Studio 4.1 and later:
Windows: %APPDATA%\Google\AndroidStudio Example: C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio4.1
macOS: ~/Library/Application Support/Google/AndroidStudio Example: ~/Library/Application Support/Google/AndroidStudio4.1
Linux: ~/.config/Google/AndroidStudio and ~/.local/share/Google/AndroidStudio Example: ~/.config/Google/AndroidStudio4.1 and ~/.local/share/Google/AndroidStudio4.1
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
I've got a couple of years of Java experience but i'm new to Android Development. I installed Android Studio and on first launch it offers me to specify Android SDK Location in Settings/System Settings/Android SDK.
Android SDK is in C:\Program Files\AndroidSdk - so I:
Click Edit
Specify path C:\Program Files\AndroidSdk
Click Next
Then in Verify Setting menu button 'Next' is inactive so I click Finish
I'm back in Setting with same red message "Specify Android SDK Location".
N.B. I specified ANDROID_HOME = C:\Program Files\AndroidSdk
and added C:\Program Files\AndroidSdk\tools and C:\Program Files\AndroidSdk\tools\bin in PATH.
Maybe you have any idea why it doesn't take my SDK Location?
After you open Studio. Goto File->Project Structure
Then specify the correct SDK location.
You can verify in terminal or cmd whether the path you are providing there is actually reachable on your system. If not, it won't work.
I solved the problem! At first launch SDK Manager of Android Studio offers to install Android SDK on your PC, for this - specify EMPTY folder. I thought i had to give him the path to already existing SKD (non-empty folder) - that was the problem.
After specifying empty folder, everything had been installed successfully and seems to work fine.
The following error occurs and none of my android projects sync with gradle. This occurred spontaneously when I opened android studio. My JAVA_HOME user variable is set to 'C:\Program Files\Java\jdk1.8.0_144\bin'. Also, JDK location in android studio wont change from F:\Softwares\Android\jre to anything because it changes back when I try to change it.
The newly created daemon process has a different context than expected.
Java home is differnt.
Expecting: 'F:\Softwares\Android\jre' but was: 'C:\Program
Files\JAVA\jdk1.8.0_144'. Please configure the JDK to match the expected one.
I changed the sdk and ndk location to somewhere else, so that the warnings for space in paths donot occur. Then I could change the JDK location inside android studio to 'C:\ProgramFiles\JAVA\jdk1.8.0_144'. This fixed the gradle problem.
Anybody knows how to get around this issue while launching Android Studio?
I saw a Google ticket here, but it was not useful: https://code.google.com/p/android/issues/detail?id=164202
Internal error. Please report to https://code.google.com/p/android/issues
java.lang.AssertionError: Unexpected node Pythonid; nodes=[org.jetbrains.plugins.terminal, org.jetbrains.plugins.javaFX, org.jetbrains.plugins.gradle, org.jetbrains.plugins.github, org.jetbrains.java.decompiler, org.jetbrains.idea.maven, org.jetbrains.android, org.intellij.intelliLang, org.intellij.groovy, org.editorconfig.editorconfigjetbrains, hg4idea, com.millennialmedia.intellibot, com.jivesoftware.robot.intellij.plugin, com.intellij.ui-designer-new, com.intellij.tasks, com.intellij.properties, com.intellij.modules.xml, com.intellij.modules.xdebugger, com.intellij.modules.vcs, com.intellij.modules.python, com.intellij.modules.platform, com.intellij.modules.lang, com.intellij.modules.json, com.intellij.modules.java, com.intellij.modules.androidstudio, com.intellij.modules.all, com.intellij.java-i18n, com.intellij.copyright, com.intellij, com.google.gct.testing, com.google.gct.login, com.google.gct, amailp.intellij.robot, TestNG-J, Subversion, JUnit, Git4Idea, Coverage, CVS]
at com.intellij.util.graph.GraphGenerator.buildOuts(GraphGenerator.java:55)
at com.intellij.util.graph.GraphGenerator.<init>(GraphGenerator.java:36)
at com.intellij.util.graph.GraphGenerator.create(GraphGenerator.java:40)
at com.intellij.ide.plugins.PluginManagerCore.createPluginIdGraph(PluginManagerCore.java:543)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:1126)
at com.intellij.ide.plugins.PluginManagerCore.initPlugins(PluginManagerCore.java:1256)
at com.intellij.openapi.application.impl.ApplicationImpl.loadApplicationComponents(ApplicationImpl.java:348)
at com.intellij.openapi.application.impl.ApplicationImpl.<init>(ApplicationImpl.java:215)
at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java:45)
at com.intellij.idea.IdeaApplication.<init>(IdeaApplication.java:112)
at com.intellij.idea.MainImpl$1$1.run(MainImpl.java:47)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
It looks like you have a corrupted installation file - completely uninstall Android Studio and download it again from the website.
Install the newly downloaded version of Android Studio on your system - the one you had previously downloaded is likely corrupt.
Here are the instructions to uninstall Android Studio completely. Note that some files may be located in a different location depending on where you chose to install and the versions you've been using so if something is not in its normal place, please let me know.
Please follow all of the steps below in order.
Run the uninstaller
The first step is to run the uninstaller. Open Control Panel by accessing it from the menu when you right-click the Start Button (This applies for Windows 8 systems). Then, under Programs, select Uninstall a Program. After that, click on Android Studio and press Uninstall. If you have multiple versions, uninstall them as well.
After you have uninstalled Android Studio, it is recommended that you restart before proceeding with the steps below.
Remove the Android Studio files
To delete any remains of Android Studio setting files, in Windows Explorer (The file browser in Windows), type this as the File Path:
C:\Users[YOUR WINDOWS USERNAME]
Replacing [YOUR WINDOWS USERNAME] with the username of your account on Windows. If you don't know your username, navigate to C:\Users and it will list all users on the system.
Here, delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2.
Then, go to
C:\Users\Harry[YOUR WINDOWS USERNAME]\Roaming
and delete the JetBrains directory.
Finally, go to
C:\Program Files
and delete the Android directory.
Remove the SDK
To delete any remains of the SDK, in Windows Explorer, type this in as the File Path:
C:\Users[YOUR WINDOWS USERNAME]\AppData\Local
Here, delete the Android directory.
(Optional) Delete all previous projects
If you want to delete any of your previous projects, the directory where your projects are found is the AndroidStudioProjects directory. It is located in your root user file, C:\Users[YOUR WINDOWS USERNAME].
Hopefully this will now have deleted the Android Studio files and you can now try reinstalling the tools.
If you have any problems doing so, give me a shout :)
1st step please disconnect your internet connection and restart the studio.
If it is not working??? Do the following steps.
Open the folder bin under the directory where you installed your Android Studio.
Find the file idea.properties and open it with Notepad++/UltraEdit/other_edit_tools.
Add disable.android.first.run=true as the final line and save the file.
Restart Android Studio.
Remove lib folder .local/share/Google/AndroidStudio4.1/marketplace
or execute command
rm -rf ~/.local/share/Google/AndroidStudio4.1/marketplace/lib
To recover from this state, you need to remove the "python" folder that you find here:
~./AndroidStudio1.2/config/plugins
(Found at https://code.google.com/p/android/issues/detail?id=164202, worked for me)
I have this problem in android studio in linux OS after install a plugin,i resolved this issue with deleted.AndroidStudio3.2 folder from Home Directory and other way you can go to this directory and delete the plugin that caused it .
Directory : /home/your system's name/.AndroidStudio3.2/config/plugins .
and for windows OS you must go to this Directory :
C:\Users\your system's name.AndroidStudioPreview3.2\config\plugins
Note : this directory is hidden and you must visible befor use it .
I did faced this issue too, where it says to do this in my windows 10:
please report to https://code.google.com/p/android/issues in a windows error message.
It happened when i added some plugins in Android studio in Windows.
It persisted in my machine until i opened my Android Studio as an administrator and then uninstalled the most recent Plugins from File > Settings > Plugins > Installed Plugins.
What went wrong may be I added many plugins and applied all of them at once. May be i should have added one plugin at a time. Like install a plugin > apply that plugin and restart my Android Studio IDE in order to see it's effects.
MacOS
My issue was with a plugin. I tried all sorts of ways of deleting Android folders using terminal. Nothing was working for me until I searched all instances of AndroidStudio in Finder and deleted each of them. After reinstalling everything worked great!
I solved it by removing an incompatile plugin located here: ~\AppData\Roaming\Google\AndroidStudio4.1\plugins.
I deleted the folder "marketplace"
Open the folder bin under the directory where you installed your Android Studio.
Find the file idea.properties and open it with Notepad++/UltraEdit/other_edit_tools.
Add disable.android.first.run=true as the final line and save the file.
Restart Android Studio.
It information helped for me
<<~ ~ ~ Quick Solution for Windows 10, Hope it will help ~ ~ ~>>
Download the latest Android Studio from the official website
Uninstall the existing Android Studio from your computer. NB: Remove Settings Preferences too while uninstalling.
Restart your computer
Install the newly downloaded Android Studio
Delete the old directories which will show when run the Android Studio the first time after installation of the new Android Studio.
NB: Do not remove your SDK files after uninstalling the Android Studio, if you want to save your time in installing the Android Studio.
I have solved this problem, depending on the system you use delete the following files:
Linux:
~/.local/share/Google/AndroidStudioPreview4.1
Windows:
C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1
MacOS:
~/Library/Application Support/Google/AndroidStudioPreview4.1
Thanks #Jonilson Coelho dos Anjos
For Ubuntu users
go to home
press ctrl+h to show hidden folder .local
now go to .local folder
you will find share folder, go inside share folder
find Google folder and delete it
Open Android Studio
Enjoy !!
delete paid plugin in android studio plugin folder (C:\Users\your_computer_name\AppData\Roaming\Google\AndroidStudio4.1\plugins) and will work correctly. it works for me.
paid plugin should have to activate otherwise it will conflict.
1) Go to
'C:\Users\your-user-name\AppData\Roaming\Google\'
2) Delete folder
'AndroidStudio4.1'
3) Then restart Android studio.
I hope this works for you.
I came with a new solution. Instead of uninstalling Android Studio and removing all related folders and losing your programming state on Android studio, and beside all these wasting your time, you should try this solution first which worked for me:
In my case the problem was the Windows. As it has crashed recently, I figured out the problem could be it, so I decided to restore the windows to the most recent point before Android Studio crashed. But the system restore tool didn't allow me to restore my system at all, and it said I should repair missing or corrupted system files first.
I first used Microsoft System File Checker tool thread to fix the case, and guess what? after restarting the windows 10, all problems gone. No need for uninstalling the Android Studio or removing any plugins or even restoring the windows to an stable state.
Hope this work for you too.
error Android studio
Hi everyone, I have this problem recently and I found the solution by deleting plugins which was corrupted in:
~AppData\Roaming\Google\AndroidStudio2021.1\plugins
-EmmyLua
-Luanalysis
My solution is:
Delete folder C:\Users\[user]\AppData\Roaming\Google\AndroidStudio
Delete folder C:\Users\[user]\AppData\Local\Google\AndroidStudio
Run AndroidStudio.
Note:
Android Studio will be opened like fresh install.
100 % solved
1st go to
C:\Users\your-user-name\AppData\Roaming\Google\
2nd Delete folder
List item
'AndroidStudio4.1'
'AndroidStudio4.1-backup'
DELETE ALL ALL ANDROID STDIO VERSION AND BACKUP RELATED FOLDER
3rd Start again android studio