is there any way I can change the resolution of Android Studio? I looked in Settings->Appearance but it seems like there is no official way to change it. I have a 1920x1080 Display and the whole window and text looks a little bit blurry. I am running a Windows machine on Windows 8.1.
Thanks!
You need to set a compatibility option "Disable display scaling on high DPI settings" for the application.
Right-click the taskbar button, then right-click the app name, select Properties, Compatibility. Set the option, save changes, restart Studio.
Those instructions are for a Win7 machine, but Win8.1 should behave the same.
To explain what is happening: apparently, the Studio is not "high DPI aware", i.e. does not declare "I know how to handle myself on a high-DPI screen", and Windows tries to scale the window so that its elements do not get too tiny.
You can override this on an app-by-app basis, but be prepared for possible glitches / tiny UI elements.
Right click on your android studio icon. Go to : Properties -> Compatibility.
Check the "Override high DPI scaling behaviour" option also select "Application" for "Scaling performed by" from the drop down menu.
Press apply and restart your android studio.
I am using Windows 10 and I am facing the same problem.
I know, I know ... why not to switch to Linux? So this won't be a problem..., but the fact is that my company gave me this notebook with Windows :/ and I've been too lazy to format and reinstall OS.
In my case the problem occurs because sometimes I use an external monitor, and sometimes I don't.
When I use the external monitor, the sources are very blurry.
In my case, what worked was
Right click on Studio icon \ Right click on "Android studio" item menu \ Properties
Compatibility \ Change Settings for all users
And now, when using external monitor
Check "Run in Compatibility with... Windows 8", and click on Change high DPI settings
Check "Override High DPI with... system"
Hope it helps.
Modify the font size in the "File > Settings..." screen on Windows
Try changing your PC's theme to Windows 7 Basic. Control Panel>Change Theme. Set it to Windows 7 Basic (should be under the "Basic and High Contrast Themes" header) and see if that fixes it. You may need to restart Android Studio to have the changes take affect. I had this issue too and it bugged the crap out of me and somehow I figured it out. Hope this helps!
Related
I have a new laptop with configuration: -
List item
Windows 11 latest build
Ryzen 7 5800H
16GB DDR4 RAM
RTX 3060 Ti Mobile GPU
Latest Android Studio
Latest Android Emulator
I have tried reinstalling the android studio and its emulators but its the same issue. Is this related to the presence of AMD processor ?
I have some ongoing projects which are halted and would like the get this problem fix as soon as possiable.
I have to develop some flutter applications
Emulator Screen Image Here
Emulator Screen Image 2 Here
I think you can resolve this problem changing the render options to ones that best suit your system, test diffent values to find out what is best for you.
To reach this screen click on the 3 dots at the side of your emulator and then: Settings -> Advanced
Edit: I have used an computer with a Risen 5700G and a RTX3050 with no flickers, so It's probably a configuration issue, also check if you have virtualization enabled on your bios, it'll depend on the manifacturer of your motherboard so I can't provide clear guide on how to enable it on your system, if needed.
try to delete the current Emulator from .android/avd and install another one such as pixel 4 or pixel 3
It also works if you put the emulator in floating mode. At least it helped for me, and many others with similar problem. On he photos I only see that you have unpinned it, but not set it to "float".
Go to settings, view mode and then float:
I hope it helps, cheers!
I have this weird problem with Android studio that's driving me crazy.
I have a new monitor, with a higher resolution (2560x1440), and on that monitor the toolbar menus looks small, they get reduced to 7 rows and I have no idea how to change this behaviour. So far it is the only software that does this, is there some settings where I can change the height of the menus?
I'm on Ubuntu 20.04 if it makes any difference.
(sorry for the picture I couldn't take a screenshot with the menu open)
You can change the font size of Android Studio UI. This might help.
File -> Settings -> Appearance and Behavior -> (Tick) Use Custom Font -> Set your desired font size at Right of the Use Custom Font option.
Checkout the Screenshot here
While I still don't know if the problem is solvable via any internal setting in Android Studio, I managed to resolve this issue by swapping my HDMI cable with a DisplayPort. What really puzzled me was the fact that only Android studio seemed to be affected.
First thing first,
Using Android Studio 2.3.3
Problem:
My emulator screen is covering the only partial amount of screen available for emulator, i.e top left of the emulator and rest part is just a black screen.
See the pic I have attached.
Things I tried:
1) Restarting emulator
2) trying different emulator
3) changing pixels, density of emulator device,
4) run -> edit configuration ..blah blah blah...
Nothing helped!!
Note:
My issue is not emulator's size but effective screen size.
please help if somebody could have come across this issue :(
IMPORTANT EDIT: I guess, this issue has something to do with the laptop I am using, DELL Latitude, touch screen (14-inch QHD touch display (2,560×1,440 resolution).
Because the same emulator works properly in other display laptops.
*Software rendering is very slow to be usable
Better Fix
You can fix the scaling issue when using the Hardware rendering by simply making windows override the scaling setting. How?, it's very easy.
Simply locate the .exe file for the emulator that you are using, (e.g. "qemu-system-armel.exe" for ARM and "qemu-system-x86_64.exe" for x86).
To make sure which .exe file, just run the emulator then use task manager to locate the .exe file is running, see the screenshot.
locate the .exe file using task manager
In my case it was in this location:
"C:\Users[Username]\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe"
Now just right click on the file then click on properties then choose the "Compatibility" tab. Under "Settings" at the bottom, click on "Change high DPI settings".
A new window will open. Tick the last checkbox "Override high DPI scaling behavior." under "High DPI scaling override".
Then select from the drop down below it "System" (this is very important or it will not make any difference!), see the screenshot below. Now just hit OK and OK. And that's it, problem solved :)
I was having the same problem too. I think it started happening when I updated to Android Studio 3.0 Beta 1, but I'm not 100% sure of that.
FIX:
Anyway, to fix this, you can use Software Graphics in the emulator options, rather than Hardware. Slower, but at least it works.
I have this similar issue. It happened after using an external monitor that has lower resolution (1440 x 900) than my laptop (2160 x 1440) has. There are couple of ways you can fix it until Google fix the issue.
if you match your PC's resolution to your external monitor's resolution. Then you can return back to your PC's resolution.
If you lower the scaling of your PC ( mine was 150% > 125% or 100%) from Display Settings. Run the emulator. Again, you can return back to your original scaling, emulator screen won't change. This is the one I prefer.
Note: this is not a permanent solution. You may need to change scaling/resolution again if you change your scaling or resolution to the one you had issue with. I have tested this only on Windows 10 Pro, but this approach might work on Mac as well.
I am running Archlinux and I had exactly the same problem because I have $QT_SCALE_FACTOR set to 2 by default. Setting it back to 1 for the emulator fixed the problem:
env QT_SCALE_FACTOR=1 Android/Sdk/emulator/emulator -avd api25
Open the Emulator and press Ctrl+Up_Key to increase the scale and Ctrl+Down_Key to scale down. (Cmd+KUp / Cmd+KDown if you are on mac)
Try this and hopefully it works for you -
Go to Tools in Android Studio and open AVD Manager
It will open all your virtual devices. Click on the Virtual device you want to edit and click the Pencil icon which will enable you to edit the device.
Click on Change where it lists the device name. For example, for me my device name is Nexus 5X and lists the resolution of the device.
In the Select a Device screen, click on New Hardware Profile and change the resolution to 1080 x 1920 px.
Save the changes and run it again. If it still doesn't work, change the skin of the device.
If still doesn't work, then make a new hardware profile with a new device.
Have you already tried other emulator? I suggest Try bluestacks
go the tab Emulator (next to the General tab), and in Additional command line options, write
-scale 100.X
Press alt + space + M
Pls. see landscape also and revert back to portrait
This looks like an incompatibility with windows scaling.
Try setting scale to 100% in display settings of Windows (right click on desktop).
In case someone ran into this issue on Linux, here is a fix:
QT_AUTO_SCREEN_SCALE_FACTOR=0 emulator -avd <Name of your virtual device>
I ran into this issue a while ago and have been struggling for it until now.
Solution seems to be:
Go to C:\Users\YourUser\AppData\Local\Android\Sdk\emulator
Here, right click on emulator.exe, click Properties and go to Compatibility. Here, check: "Override high DPI scaling behavior. Scaling performed by: APPLICATION".
This should fix the issue on any Windows 10 machine with display scaling activated.
Just go to display setting and change it to 100%.this normally happens if you have a fourteen inch laptop and below
Best and simplest way to do it on Windows 10:
Close your Android Emulator if it is open
Right-click desktop
Click Display Settings
Set Scale and layout to 100%
Open Android Emulator
Revert your Scale and layout to the (Recommended) percentage
I have a problem with any wizard that its height more than or equal my screen height in android studio, the issue simply that the buttons hidden under Windows TaskBar, see the following image :
I have the latest Android Studio IDE 1.3 build AI-141.2117773
My JDK version is 8 Update 45, on Windows 10 Pro (build 10240)
My Screen resolution 1366 x 768 (for laptop 15 inches screen)
Any solution for this issue?
Well its not only the problem of yours but its a bug in the studio for 1366x768 resolution which is discussed in the forums so my suggestion is that use the tab keys to have a control on the keys that are beyond your cursor reach or you may use the autohide feature of your taskbar..
Either:
get new laptop, with specs more suitable for development
set taskbar to autohide mode
move taskbar elsewhere (I personally prefer it on a side)
It's old question but as #Ravi Rathore said, its bug for 1366x768 screen, its old bug but with low priority for Google -_-
Anyway there is a solution for it provided in their forum:
Open android studio.
Go to settings
Go to appearances.
Change the theme to windows
Here: https://code.google.com/p/android/issues/detail?id=168828
I've seen many posts asking about how to re-size the AVD emulator window, however, I have not found any that work. My emulator is off the top of my computer screen, and I cannot resize it.
How can I resize the AVD emulator window in Android Studio?
After the Android Studio 2.2 update, there is no Emulator Tab in Edit Configurations window.
If you want to scale your emulator, you just need to use this keyboard combination:
To scale up: Ctrl + ▲
To scale down: Ctrl + ▼
If what you want is scaling by a percentage or getting a 1:1 display, maybe you should try modifying these two files:
(I don't know if this one will work since I didn't have a chance to try.)
C:\Users\YOUR USERNAME.android\avd\Nexus_XX_API_XX.avd\hardware-qemu.ini
C:\Users\YOUR USERNAME.android\avd\Nexus_XX_API_XX.avd\hardware-qemu.ini
Update for 2022:
Please see this answer if the above method doesn't work for you.
With Android Studio 2 now you can resize your window simply by dragging a corner.
You can resize your emulator screen
By going (in the top menu of Android Studio) to Run > Edit Configurations
In the left panel of the just opened dialog, choose your application.
In the right panel, choose the General tab, and then go down and check Emulator, and in Prefer Android Virtual Device, choose the virtual device you are currently using.
Now, go the tab Emulator (next to the General tab), and in Additional command line options, write
-scale 0.X
where X can be for example 25 or 50, which would represent respectively 25% and 50% of original size.
On emulator window, go to settings via "..." at the bottom and then choose Settings tab which second from bottom and toggle "show window frame around device"
Then resize with your mouse
Try this on Android Studio:
Go to Run
Click Edit Configurations
From left side, under the Android Application tab, select name of your application
Now, from General tab (in the right panel), go down and check Emulator, and select one emulator from Prefer Android Virtual Device list
Click on the Emulator tab, and in the entry box Additional command line options, change the scale of the emulator to something of the form -scale 0.X (where X could be for example 40, if you want your emulator to be 40% of the full size)
Click Ok to save these settings
Edit : On Android Studio 1.5 , this options are removed. Good News is we can directly change the size of the emulator from Android Studio 2.0 (As shown in the introduction video)
Probably a duplicate but my step by step on what I did to get this working.
Environment Windows 10 64-bit on Surface 3 i7 8g ram w 512g hard drive.
Run HAXM config in {android sdks}\Intel\Extra
Gave it 4 gig of ram
verified its working by going to an admin prompt and running 'sc query intelhaxm'. Status of 4 verified it was happy.
Ran Android Device manager and deleted all images present.
Created new image targeting KitKat 4.4, wqith 768mb of ram
In emulator set scale to be "4 dp to 1 px onscreen"
You'll have to experiment for your particular resolution.
Started the emulator from the device manager. Comes up FAST, and non-docked, and clickable.
Screen shots below.
Healy in Tampa.
On Android Studio 4, you can enter zoom mode by clicking this button. After dragging the window to the desired size, you can exit zoom mode by clicking it again.
I have gone through this same issue and recently got perfect solution.
While you creating your own virtual device there is an option for "Start-up size and orientation" ,the default of which is "auto"
You need to select another value according to your need from the drop-down menu and voila...
This worked for me and wish will work for you too.
Android Studio 1
Got to AVD Manager
Under Actions for the device you want to change
click "Edit this AVD"
Change Scale setting
Android Studio 2
For step two click on the little pencil on the right.
This solution is going off of what #james04 did with a minor tweak since specifying the scale as -scale 0.X didn't work for me.
Run --> Edit Configurations --> Emulator tab
Check Additional command line options
Type -scale 128dpi (or some other dpi of your choice; will need to experiment a little to get exactly what you want).
So, basically just replace -scale 0.X with -scale XXdpi.
I was getting problem while doing from the methods mentioned.
I will give the way I did, which is different from the given methods.
Follow the steps as given :
Go to Control Panel.
Click on Programs.
Select "Turn Windows feature On or Off".
Check "Telnet Server" and "Telnet Client".
Go to cmd.
Type "cd\" (to move to the main directory).
Now type "telnet localhost 5554" (leaving the quotes and the number is the same as present on top of your emulator).
Now type : window scale 0.x (x as per your requirement eg: window scale 0.5 to get the half screen size).
Hope this helps.
Link : https://www.youtube.com/watch?v=O9bvxlo70IE
!!!! Finally !!!!
For Android studio greater than 2.0
This solution worked for me. Since Emulator tab is not there to scale the screen.
Go to Android virtual device(AVD)
Emulated performance > Graphics - Change it from Automatic to Software.
See Screenshot for better understanding
Open "Task Manager" look for the process running the AVD. In my case "qemu-system-x86_64.exe"
Task Manager Screenshot
Right click on the process and choose "Open containing folder"
Right click the file "qemu-system-x86_64.exe" to open file properties
In the properties window select "Compatibility" tab
Properties window
Select change High DPI settings
enter image description here
Under "High DPI scaling override". Check "Override high behavior" and Select "System"
Worked for me on a surface book
Starting with Android Studio 4.1, scaling the standalone emulator is not possible (or if it is, it's not straightforward), but there is a workaround:
You can configure Android Studio to run the emulator in a tool window, and, within that, the emulator adapts to the available space. If you change the tool window's view mode to "Float" or "Window" (small settings icon in the upper right) you get a fully resizable standalone emulator window. The only difference is the window frame drawn around it.
Android Studio -> Preferences... -> Tools -> Emulator -> Launch in a tool window
Update:
The latest version of the emulator (30.5.3) now also allows you to resize the UI when run in standalone mode. Make sure you select "Show window frame around device" in the emulator settings.
for mac its CMD + UP. Tested on Android Studio 3.1
This is situational for me:
My setup:
MacBook Pro (Retina: 2880x1800) + 27' ASUS Monitor (1920 x 1080) + Startup size and orientation in AVD Manager set to Auto.
There are 2 situations in which I can start emulator:
1) With ASUS monitor attached to Macbook Pro
This results in an emulator window that fits my ASUS monitor in height. If I move the emulator window over to MacBook - it does not resize properly - part of the emulator window is hidden.
2) No monitor attached to MacBook Pro
This results in an emulator window that fits my MacBook Pro in height. This is ideal because I can now reattach the big ASUS monitor and the window is still a comfortable size.
This leads me to conclude that in the case of multiple displays - Android Studio philosophy is to pick the largest size and size the Emulator window accordingly.
So I guess Android Studio bug fix/enhancement can be to reset emulator window size based on detecting a different resolution when it is moved between displays of different resolution/dpi/ppi.
I have submitted a bug report to AOSP here:
https://code.google.com/p/android/issues/detail?id=187327&thanks=187327&ts=1443045686
With older versions of Android Studio, adding -scale 0.5x to the additional command line options worked like a charm.
But with Android Studio v1.5.1, The Emulator tab is missing in the Rn/Debug Configurations window.
Has anyone else encountered the same thing?
As of now, I'm starting the emulator from Command Line with the -scale option to make it work.
./emulator -avd NEXUS_9_API_19 -scale 0.4
Concerning the resizing, there are plenty of good answers here. But for moving the emulator window with the keyboard it is as easy as pressing [ALT] + [Spacebar] and move the window around with the arrows.
This is a good trick for any kind of apps.
Yet another way in AndroidStudio. Open the terminal from the bottom status bar.
Enter the following, changing the path and avd name to match your environment.
C:\android-sdk\tools\emulator.exe -scale 0.25 -netdelay none -netspeed full -avd Nexus_6_23
Note: The scale can be refined as needed
Unfortunately, -scale and -dpi-device flags have been deprecated with Emulator 2.0.
(http://tools.android.com/recent/emulator20previewreleasenotes)
25.0.7
Add warning messages for deprecated window size flags. ("-scale" and "-dpi-device")
25.0.6
The deprecated “-scale” parameter will now be ignored. (b.android.com/200522)
25.0.5
Removed the "-scale" flag and "window scale" commands. (b.android.com/199843)
I think the best workaround for now, modu's answer. The usage CTRL+ Up and CTRL + Down
For those who want a cmd line way, create a shell script (this example uses window_scale.sh) in your path with this content:
#!/bin/bash
if [ $# != 1 ]; then
echo usage: $0 scale
exit 1
fi
echo "window scale $1" | nc localhost 5554
Then just type the following command to resize the window to whatever you want:
$ window_scale.sh 0.4