Touch Bar icons not showing for Android Studio after update - android-studio

I'm using a MacBook for the first time.
I had Android Studio 4.0 or 4.1 (I think) installed. It used to show me all the icons in the Touch Bar like the green run icon and the debug icons so I could use them directly from there. Even when in debug mode I used to get all the icons for stepping over or stepping into code.
After that I updated Android Studio 2-3 times and I am currently on Android Studio 4.2.1 and it has stopped showing any of the Touch Bar icons for Android Studio since the first time I updated. There are times when debugging that the debugging icons show for a while and then suddenly disappear. I'm facing this issue only with Android Studio.
According to another answer online, I am supposed to have a folder for Touch Bar (Settings) under Android Studio: Preferences > Menu and Toolbars but I don't have and folder for Touch Bar Settings there.
Can any one help me resolve this issue?
Thanks

answer in https://developer.android.com/studio/known-issues
To resolve this issue, revert any customizations you have made to those buttons as follows:
Select File > Settings (or Android Studio > Preferences on macOS).
On the left of the window, navigate to Appearance & Behavior > Menus and Toolbars.
On the right side of the window, navigate to Main Toolbar > Toolbar Run Actions and select Run/Debug.
Near the top of the window, click Revert. and select Restore Run/Debug.
Click OK. You should now see the missing buttons in the toolbar.

Open Terminal and type the following commands:
mkdir -p ~/Library/Frameworks/nst.framework/
cd ~/Library/Frameworks/nst.framework/
ln -s path/to/android/studio/install/Contents/bin/libnst64.dylib nst

This issue has been resolved after I upgraded to
Android Studio Arctic Fox | 2020.3.1
Build #AI-203.7717.56.2031.7583922
An interesting thing about Android Studio Artic Fox is that it has changed the versioning scheme to match that of it's parent product, the Intellij IDEA 2020.3.1. So rather than Android Studio 4.3 it is now Android Studio 2020.3.1 with code name Artic Fox. This will keep the versioning schemes systematic.
There are a lot of cool feature updates too.
Check more at this link Android Studio Artic Fox release notes

Related

How to make my emulator shows up outside of my android studio?

Recently, I updated my android studio to bumblebee version, and when I run my codes, I realized that my emulator are shown inside of my android studio instead of creating a new window for the emulator. you can see what I mean, here.
does anybody knows how to fix this? I already tried to change the settings but nothing is changed. should I reverse the update?
I had the same issue, to resolve it do the following:
In Android Studio: click on
File,
Settings,
Click on the Tools dropdown,
Emulator,
uncheck the "Launch in a tool Window" box
Settings with Launch in a tool window checkbox

Windowed mode emulator after Bumblebee update

Today I updated my Android Studio from the Arctic Fox to Bumblebee 2021.1.1, and I realized my AVD and emulator windows changed a bit. They were on separate windows, now they are on the right side-menu.
I windowed the emulator again to get the old style, but the mobile-phone on the emulator is not separated from the menu. In the older version, I only had the phone as a separate window, I didn't have window bars and side fillers that are marked on the picture below. How can I get rid of them and only get the phone instead of the whole window? I don't want it as "emulator window" but rather plain "phone".
If you want the old look in Arctic Fox, go to
File->Settings->Tools->Emulator and unselect "Launch in a tool window".
This way it will launch it seperately which is the same as in the old version.
For Mac go to Android Studio Preferences - Tools - Emulator and uncheck Launch in a tool window.

Logcat tab missing from debug window in Android Studio

Somehow I closed the logcat tab from the debug window and now I am unable to get it back.
In Run->Configuration->Logcat I have everything checked.
I do have the logcat tab in Android Monitor window, but not in Debug.
How can I get it back?
I created a bug on on their bug-tracker: https://youtrack.jetbrains.com/issue/IDEA-144525
I think with the release of Android Studio 1.4 the logcat tab has been removed from the Debug view. Now I believe the only place to access it is by opening the Android Monitor view by pressing Alt+6 on Windows or CMD+6 on Mac.
Release notes of Android Studio 1.4 Beta 3 allude to this:
Logcat view mostly rewritten to address a number of stability and usability bugs
In Android Monitor window, click the little tiny button on the top right corner.
No one has seemed to mention this, but make sure you are inside the "android" directory and not the root directory of your project (React Native). Logcat will not display otherwise.
Click on Android Monitor at the bottom of the screen.
and then you should see there are a tab call "Logcat" next to "Memory" tab.
In Android Studio 3.5.2, Logcat can be shown from View > Tool Windows > Logcat
For some reason in a specific project, it wasn't found using this way, but I could fix it as following:
File > Project Structure > Facets > Add > Android > my_module
While I would be a little late for the party, it has been a few years and new version of Studio.
Today when you encounter the bug, your logcat would not be shown, to resolve this you would need to follow these steps:
Menu -> Build -> Make Project
in your settings.gradle comment out everything and sync.
uncomment everything and sync again.
Menu -> Build -> Make Project
Once the project build is done.. your Studio would be ready.
I have encountered several different bugs related to this issue, this scenario covers most of these cases.
Given solutions not worked for me.
I found another solution
Click
View-> Tool Windows -> Logcat
Then the missing Logcat tab appears again.
Android Studio IDE version: (Android Studio Electric Eel | 2022.1.1 Canary 8)
It was working fine and it disappeared suddenly.
After nothing else worked, I ran adb devices to see if my device was correctly attached and TA DA.
adb server wasn't running and started automatically and Android Studio started to show Logcat as always.
➜ adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
0030713775 device
press alt 6.
If you still don't see it there should be a little icon in the top-right corner of the view, press that.
Top Menu:
View -> Tool Windows -> Logcat
Bottom bar:
View -> Appearance -> Tool Windows Bar

Android Studio can no longer add SDKs, only JDKs. Why?

I've upgraded Android Studio from 0.8.* to 1.0.0 RC2 and finally 1.0. Somewhere between the RC2 and 1.0 Android Studio seems to have lost most of its references to the Android SDK.
Some indicators of this are:
All Android SDK tools have disappeared from the toolbar
No longer possible to attach the debugger or run apps from within Android Studio
In 'Project Structure', the SDKs list shows a list of previously added SDKs but when pressing '+' to add an SDK it only allows me to add JDKs.
In 'Project Structure', the previously added SDKs show "Unknown SDK home path" with a path to the location of the Android SDK. Editing the field with the '...' gives me a "Select Home Directory for Unknown SDK" and pointing to an Android SDK location and pressing OK shows a warning dialog saying "The selected directory is not a valid home for Unknown SDK".
The 'android' facet is an unknown facet type
How do I make Android Studio recognize the Android SDK again?
After a few hours of research (uninstalling and re-installing) I worked out how to fix it but still I don't know how it happened.
These are the steps:
Close your current project
Go to Settings
Click on Plugins
Enable Android Support
Follow the wizard
If you are on Windows, you can right-click the toolbar, and select Customize Menus and Toolbars -> Main Toolbars -> Android.MainToolBarActionGroup. You can also select the SDK Manager and AVD Manager from the Main menu.

In android studio,cannot load 2 facets-unknown facet type:android and android-gradle

When I open android studio I am getting an error- "Error loading project: Cannot load 2 facets. When I clicked to see the error the following appeared
"2 facets cannot be loaded. You can mark them them as ignored to suppress this error notification.
Unknown facet type:'android', Unknown facet type:'android-gradle'
I tried to add facets ( In Project Structure > Project settings > Modules > clicked project name, then clicked Android as well as Android-Gradle) But both showed as "cannot load facet, unknown facet type." Under Project settings > Facets > both Android and Android-Gradle are displayed as 'Invalid facets'.
My project was running smoothly. This problem occured when I force-closed my laptop before exiting android studio as everything got stuck. After that whenever I open the android studio this problem occurs. I am not able to run my project. Can anyone please help me to solve this?
Just enable Android Support plugin.
Click Ctrl+Alt+S in Windows or Meta+Comma in Mac.
In top search bar type "plugin".
On right side it will show a list of plugins, find Android Support plugin, check it and click OK at the bottom of screen.
This is how it looks:
In Android Studio go to
File -> Settings - > Plugins -> Enable "Android Support" Plugin.
File, Then Settings->Plugin->Enable/Renable Plugin --> Apply --> Restart
This problem occured when i'd updated Android Studio.
In case nothing from other answers works, you don't have another option, except removing broken settings and making clean setup.
So what i am suggesting:
Use Settings Repository Feature to store personal IDE settings
close studio
remove .AndroidStudioX folder from user folder
re-launch studio, do not copy settings from previous version (because settings probably broken and auto-import couldn't import it well)
import personal settings from Settings Repository
For me I went to Settings -> Plugins and de-selected Gradle then immediately re-selected it. Android Studio then asked if I wanted to enable Groovy so I said yes and let it restart and now everything is happy again! (it was checked, but clearly somewhere deep down not truly enabled, so toggling the check-box sorted it)
Not sure if my cause was installing Flutter, but I did have to disable the Flutter plugin before I could build again.
I had the same problem with an ever-increasing number of facets - first 2, then 4, then 5 - and none of the above solutions worked. My solution (Android Studio 3.3, OS X) was to delete ~/Library/Preferences/AndroidStudio3.3/disabled_plugins.txt, which contained org.jetbrains.android and org.jetbrains.maven
I imagine if you have deliberately disabled plugins then you'll have to disable them again manually, but I was able to load all facets again.
Go To ->File->Settings->Plugins->disable/enable Android Support Plugins->Press Ok
Just re-enable Android Support plugin. Then it will ask to restart.
Restart them thats it
I faced this issue in Android Studio 3.2.1 I had to re-import my project after that it works.
I was facing this problem, I tried everything but nothing worked but then I remembered that I updated Android Studio just few hours back and then I enabled the plugins in the Android Studio and restarted it and it worked.
File -> Settings -> Plugin and then just press ok. It will ask to restart the android studio and please restart it.
For me I had to uncheck the plugin Android APK Support. I clicked Apply and then Ok to close the window. Android Studio prompted me to restart the program, and the program restarted. I checked the Android APK Support plugin again and restarted the program. And then I selected File -> Sync Project with Gradle Files
Then it worked just fine.

Resources