Recently I upgraded from Windows 10 to Windows 11. But now when I open Android Studio only a blank file icon appears on the taskbar.
Is there any way to retrieve the original Android Studio icon?
I have also checked that the .ico file exists in C:\Program Files\Android\Android Studio\bin\studio.ico
I did this and it showed for me:
From start menu: right-click its icon.
Click More -> Open file location.
Right-lick the shortcut and choose Open file location.
From the opened directory, open the file studio.ico with any app.
And suddenly the taskbar refreshed and it showed.
You can click on Start and search for Android Studio ,then on the right side you will get an option of pin to taskbar, click on it. Now Android Studio icon will appear in Taskbar.
But why this happened?
This usually happens when the location of file has changed or it has been deleted! But why this happens during updating to Windows 11 in some PCs, only Microsoft knows!
This is what's working for me:
From start menu: right-click the icon.
Click More -> Open file location.
Right-lick the shortcut and open Properties.
Change Icon -> OK -> Close.
Do step 3 & 4 again, because the first time didn't change the icon (in my case).
If you create a C++ project in Android Studio (JNI) and then attempt to rename the jni from the default of native-lib.cpp to another name, the file disappears from the Android Hierarchy. What is the proper way to refactor/rename this file?
#Vidz answered this:
Android Studio -> Right click on native_lib.cpp file -> Refactor -> Rename as XYZ.cpp -> File name will be renamed -> CamkeList will be updated for the updated file name. If you change the view from Android to Project Explorer, modified will be seen. If not seen, you may try File -> Invalidate cache and restart -> File should be visible now – Vidz Jan 2 at 13:26
I have updated Andorid Studio yesterday. Now I am unable to see the tab for changing gradle build variant. Is that option replaced somewhere?
Sometimes it gets hidden under the slider. You can make it visible at clicking on window (see below image, "window" option marked with arrow)
Another option is, you can go to this option via View -> Tool Window -> Build Variants.
Refer image below
No, build Variant is available in 3.4, might be it is hide from your studio, you can see it from
View -> Tool Windows -> Build Variant
No option are not replaced in 3.4 android studio. If you have removed by mistakenly you can always add from View -> Tool Windows -> Build Variant. You can even drag and drop Build Variant from left toolbar to any specific location in android studio.
I want to show preview for markdown.
But it is not shown.
I am using Markdown support by JetBrains. And Android Studio 3.1
I found IntelliJ help.
https://www.jetbrains.com/help/idea/markdown.html
But I can not see that preference.
How can I see markdown preview?
Updating JetBrains Runtime (JBR) will solve the issue.
Start the IDE, use Help -> Find Action, type "Choose Boot Java Runtime for the IDE", press Enter.
Select the newest version with JCEF to install.
Click the OK button and wait until the file with JetBrains Runtime is downloaded and configured.
Restart the IDE and Enjoy.
Video(44S): https://youtu.be/Mtu3dUgK480
Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add *.md to the list
Reassign the wild card
Do likewise for the Text file type
Enable the Markdown
Go with Vladimir Schneider
Preview like a bawse!
UPDATE: As mentioned by #desgraci below. It's now a paid plugin. It doesn't even show up. It would ideally work as indicated in the updated documentation but some requests left in the reviews.
I'm unable to make it work.
I suggest giving up and opening it in Visual Studio Code.
Right-click tab with your file, select Split Right.
In second instance, right-click tab again and select Open in Preview.
Now you have text and preview at the same time.
Taken from https://issuetracker.google.com/issues/159933628?pli=1#comment7
In the Android Studio:
Find action (ctrl + shift + A / command + shift + A)
Search for Choose Boot Java Runtime for the IDE
Select the latest version in
the "New:" dropdown - e.g. 11.0.12+7-b1504.27 JetBrains Runtime with
JCEF OK Restart
Worked in: Android Studio Chipmunk | 2021.2.1 Patch 1 | Build #AI-212.5712.43.2112.8609683
There is another plugin which is "Markdown Navigator Enhanced" and that I tested on Android Studio 3.5.2, it enables a toolbar with some editing functions as well as the preview options.
You can Edit, preview or do both in a split window, you can even show the HTML code.
The plug-in is paid, but it has a 30-days trial that can be good for a short usage.
Download plugin first,and then you'd better do something to active it:
Windows:
AndroidStudio ->File -> Editor ->Coe Style -> File Types->Markdown-> + -> *.md -> ok -> ok
Mac:
AndroidStudio -> Preferences -> Editor -> FileTypes -> Markdown-> + -> *.md -> ok -> ok
Then enjoy writing in md.
This is not just a JavaFX issue, which can be resolved by installing Choose Runtime plugin and choosing a different JDK. The Markdown plugin itself also references classes from IntelliJ UI, which means that even with a runtime that includes JavaFX, it still requires IntelliJ and won't work properly with Android Studio:
Caused by: java.lang.ClassNotFoundException: com.intellij.ui.javafx.JavaFxHtmlPanel PluginClassLoader[org.intellij.plugins.markdown, 193.6494.42] com.intellij.ide.plugins.cl.PluginClassLoader#4fa7c8ac
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:77)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 93 more
It will still work with the default bundled JDK, just reduced functionality without the preview panel.
References:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003498520-Mardown-plugin-doesn-t-show-preview
https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under
A little late but you can go to Settings/Preferences -> Editor -> File Types. Select Markdown Language from the list. Below, in the Registered Patterns section, add *.md, press ok, and restart Android Studio
Elijah's answer is great, but you may have to do ↓ after his actions.
Preferences -> Editor -> FileTypes -> Markdown-> + -> *.md
Since there is no good plugin for Android Studio IDE, If you have VS Code, I recommend Markdown Preview Enhanced plugins.
Or if you work a lot with Notepad++ , you can install the MarkdownViewerPlusPlus plugin
Follow folowing steps for Notepad++ MarkdownViewerPlusPlus plugin setup:
Download MarkdownViewerPlusPlus, you get a .dll file
Open notepad++ -> plugins -> open plugin folder
create subfolder "MarkdownViewerPlusPlus", paste your .dll file
restart notepad++, in plugins menu options now you should see MarkdownViewer++.
File -> Editor -> File Types->Markdown-> + -> *.md -> ok
File -> Editor -> File Types -> ASSOCIATE FILE TYPES WITH ANDROID STUDIO -> select all -> ok -> yes
File -> Plugins -> Marketplace -> search "Markdown" -> install -> APPLY -> OK
Help -> Find Action -> "Choose Boot Java Runtime for the IDE" -> Select the runtime that comes with JCEF support -> OK
restart Android Studio
My solution to this issue is to preview on VS Code
Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add *.md to the list
when you open the md file it will ask if you want to open it with your favorite file editor select vs code
Alternatively you can use markdown editors separately. Here are few options:
MacDown for Mac
Typora
GhostWriter
Few more online editors:
StackEdit
Dillinger
Editor.md
Draft
In the Android Studio:
Find action (ctrl + shift + A / command + shift + A)
Search for Choose Boot Java Runtime for the IDE
Select the latest version in the "New" dropdown - e.g.:
11.0.16.8-2043.64-jcef JetBrains Runtime with JCEF
OK
Restart
Worked in:
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
How do I run multiple instances of Android Studio? A second instance is launched if you select "File\New Project", but "File\Open" and "File\Reopen" does not create a second instance.
Your Android Studio was set to open project in the same window. You can change that, so it asks whether to open new window while opening other project.
Do this:
Go to: File -> Settings -> Appearance & Behavior -> System Settings -> Project Opening.
Check [x] "Confirm window to open project in".
Now open the other (2nd) project with File -> Open... etc.
You will now be asked if you want to open a new window or replace what you already have. Select New Window.
Screenshots:
Older versions:
Go to Settings -> General -> Project opening.
Check 'Confirm window to open project in'.
Create or open different project
You will be asked if open a new window.
There was an update in Android studio so the new solution would be:
go to >file
go to >settings
go to >appearance and behavior
go to > system settings
now in system settings check the "confirm to open project in" option
On Mac is:
Android Studio
Preferences
Appearance & Behavior
System Settings -> Project Opening -> Confirm to open project in
When you open other project, you will be asked if you want to open a new window or replace what you already have.