How to make my emulator shows up outside of my android studio? - 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

Related

why LogCat and AVD Manager missing in Android Studio when flutter project is opened

In Android Studio 3.5.3 , the menu Tools->AVD Manager and View->Tools Windows->Logcat is not available when a newly(or existing) flutter project is opened.
I looked at https://github.com/flutter/flutter-intellij/issues/2159 , and
<module type="JAVA_MODULE" version="4">
is in the outer most iml file.
Please suggest how to find/enable it. For now I have to open an Android project to open these two menu items.
LogCat won't appear for a flutter project and does not seem to be available to enable in the current version of Android Studio. If you open an Android project in another window, THAT window will have LogCat which can be connected to the device you are trying to debug.
AVD Manager does not have a menu item in Flutter but is available from an icon in the toolbar. See picture.
It's also worth checking out DevTools, which opens up in the browser, as an additional (not LogCat) debugging resource. The button to this is found in the Run Window when you are running an app.
There two ways to find or unable it
1. Go to the View-> Tool Windows and you can choose whatever you want to put in Tool WindowBar
2. Go to the View-> And Tick or select on Tool Window Bars
After doing that you can see the logs for particular apps, And for AVD manager...
Go to the Tools-> AVD Manager

Annoying "Create Desktop Entry" popup in Android Studio on Ubuntu 16.04

Recenty I installed Android Studio on my laptop running Ubuntu 16.04.
When I created a new project and used Android Studio, this annoying popup kept showing: (Because my low reputation, I cannot post images, please click the link below)
https://i.stack.imgur.com/zNMbk.png
I tried to check the checkbox but it still display everytime I click on anywhere in Android Studio.
Help me, thanks in advance.
Try to use this for creating a desktop entry: desktop-file-install THE_DESKTOP_FILENAME_HERE.desktop
It might be the solution (if error it's because it localized the fileB, if ok it will copy to the correct localization /usr/share/applications) Restart then
After trying many times, I decided to reinstall Android Studio and the error disappeared! I don't know the reason clearly but maybe using Create Desktop Entry in Android Studio and creating a .desktop file manually (after installing Android Studio, I wanted to add Android Studio icon to launcher) caused conflicts.
goto settings in android studio
keymap-> main menu-> tools-> create desk entry
right-click on "create desktop entry"
you will get an option to turn off it.

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

Terminal on Android Studio not responding

I updated to Android Studio 1.3 and to Windows 10 before that.
Now the issue I am facing is that my local embedded terminal in android studio has some how stopped responding to any kind of user input.
I have tried:
Restarting the android studio
Restarting the PC
Searching through Google for a solution
My Terminal settings
Has anyone ever faced a similar issue?
Is it a Android Studio problem or a Windows problem?
How to solve it?
You may suggest me to use the external terminal as that too will work fine. But that's not the answer I am looking for as it ruins the whole Android Studio experience.
This is an issue with IntelliJ and Windows 10 console.
Here is a workaround from "IntelliJ Idea Terminal broken with Windows 10" thread:
https://stackoverflow.com/a/31716623/703562
Works for Android Studio too.
The workaround:
Open a command-prompt window.
Right click on the title bar.
Select Properties, then check Set legacy mode box, and confirm the dialog.

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