where is the Android Studio executable - android-studio

Where is the Android Studio executable file stored in the system?
I have it installed, but have unpinned it from the taskbar, which was the only shortcut I had. Since I can't find it in File Explorer, I can't load it.
I've tried the Start menu search function, and used File Explorer to search the entire install directory. The only thing left I can think of to do is reinstall it, but I don't really want to do that, as it was working fine.
P.S. I wasn't sure if this was more appropriate for SuperUser, since it's not directly coding related, or SO, since I doubt the number of people on SuperUser with the answer.

You can find the executable file in bin folder where the android studio is installed, default location is
Windows
C:\Program Files\Android\Android Studio\bin\studio.exe
There is also studio64.exe in the same directory for 64-bit machines
Linux
path_to\android-studio\bin\studio.sh

In Ubuntu/Gnome make sure you create an application file in
/usr/share/applications/android-studio.desktop
with the following content
[Desktop Entry]
Name=AndroidStudio
Type=Application
Exec=/path/to/android-studio/bin/studio.sh
Terminal=false
Icon=/path/to/android-studio/bin/studio.png
Comment=Android Studio
NoDisplay=false
Categories=Development;IDE;
Name[en]=AndroidStudio
This way you will be able to find Android Studio in the applications list, create desktop shortcuts for Android Studio or add it to the favourites bar.

I don't remember how did I installed Android Studio on my Ubuntu 16.04, but my android studio executable is located as /snap/bin/android-studio.

Related

Android Studio missing essential plugin org.jetbrains.android

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 launch Android Studio from terminal on Windows (and Linux)?

I'm struggling to understand how to open applications from shell.
When I use Atom, I can just run
$ atom .
command to open it in the current directory, but I don't know how to do it with Android Studio.
I don't know if it has something to do with aliases, environment variables or something else, but I'd like to know how this stuff works. I'd also appreciate a short comparison of the same problem on Linux.
On my winslow-7 machine there is an icon on the desktop named "Android studio".
I checked the properties of this icon, and in the destination field I've found:
"C:\Program Files\Android\Android Studio\bin\studio64.exe"
If I type that in a command prompt, Android studio opens normally.
A similar thing works in Linux too.
Basically, to run a program, you have to know where its executable resides; then you can ask the shell to run that executable. A few directories are searched automatically by the system and, if the executable resides in one of those directories, there is no need to indicate the full path - the name of the file suffices. The list of directories is an environment variable, PATH, for both windows and Linux.
This is a short and incomplete answer, though; your question asks a comparison and/or something more, but it is not clear and there would be a lot to say.
If you use the studio64 . command, your current folder will open in android studio.
This works if you've added the path of the bin directory of the android studio installation folder to environment variables. In my case, it is C:\Program Files\Android\Android Studio\bin.
This works the same as atom . or code .(VSCode)
The problem is, that it returns a bunch of warnings and stuff in the terminal before launching android studio. Also, if you close the terminal, the studio crashes.
It works but it's not purrfect.
For Windows:
Make a shortcut for your application and place in C:\WINDOWS\System32
you will be able to call it by the name of the shortcut.
For Linux:
echo $PATH

Setting Android Studio's GRADLE_HOME

I installed Android Studio on Linux Mint 17.2, but when I open up a terminal window and echo $GRADLE_HOME, nothing is set. Should it be set? If it should be, how would I find where it is located so I can manually set it myself?
Thx
The Gradle installed via Android Studio will only be available only within Android Studio. I may be wrong here, since I never used Android Studio. However, if you want Gradle available outside of Android Studio you may have to install manually. Check out the Gradle Documentation. Once you installed set the Gradle home in /etc/environment file (There are several files in which you can set this, but this is my preference since it makes the variable available to all users). Add the installation location to that file. You may choose to install in a different location.
GRADLE_HOME=/usr/local/gradle-2.13
After you add add bin location to PATH variable. Eg:
PATH=...:$GRADLE_HOME/bin
Since you are adding the GRADLE_HOME in /etc/environment file you may have to restart your PC after adding.
The Android Studio zip bundles gradle. After unpacking the zip it is located in android-studio/gradle/gradle-x.x/bin (assuming the unpack directory is android-studio). In my case with Android Studio 3.1 the gradle version was gradle-4.4
so setting GRADLE_HOME to /path/to/unpackdir/gradle/gradle-4.4 should work.
Then add $GRADLE_HOME/bin to your path and you should be set.
You might have to chmod +x gradlew (for example if you use cordova and want to install a plugin)

Internal error. Please report to https://code.google.com/p/android/issues

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

Android Studio Beta v0.8.14 not showing in start menu

I have downloaded Android Studio Beta v0.8.14 and followed the steps to install it on Windows 7 from the link:
https://developer.android.com/sdk/installing/index.html?pkg=studio
The link says to launch studio.exe and follow the installation wizard. But the zip file contains studio.exe file in bin folder and directly launches Android Studio(after resolving all issues). There is no installation wizard and so it is not showing up in start menu. I don't have any others problems though but just want to make sure that everything is all right.
Am I missing something?
Android studio doesn't have an installer. you just unzip the file and its ready to go. You are not missing anything.
However, if you want to you can adda start menu shortcut for the .exe file if you want, that doesn't have an installer.

Resources