I have recently downloaded android studio and whenever i create my virtual device it shows completely blank and it doesn't boot up or something like that enter image description here
you may need to update emulator from sdk manager and update graphic card driver
also you can try this:
when creating new emulator (or you can edit a created emulator) go to:
advanced > Emulated Performance > Graphics
and change it to: software
Related
Hey guys I just updated Android Studio, I am glad that they finally fixed the bug where you could not open up the Device Manager. However they changed the look of it and it now comes inside AS or as a much much larger window (see my screenshot).
Is there a way to make it look like it was before? So just the Device with its frame and not that huge window around it? Also Crtl+M doesnt work and Crtl+Upkey/Downkey do not change the size of the emulator like it used to.
Go to Preferences of Android Studio
Search for emulator, or navigate to tools -> Emulator
Uncheck the Launch in a tool window
I'm not able to change the ram size in the memory and storage section of the AVD manager in the android studio. I wanted the emulator to run a little faster (I have 8GB RAM). The controls are completely gray out.
If you create an AVD with "Recommended" system image then you can't change the "Memory and Storage" parameters neither when you create AVD nor when you edit your AVD.
Solution:
You should select your "Image" from "x86 Images" tab and then change "Memory and Storage" parameters in the next page.
It happened to me with an image with the pre-installed playstore app. Maybe it is an android SDK bug. Try to create one with no playstore app.
Look for your avd folder, then look for the folder of the image you want to change and edit the config.ini.
change the value of
hw.ramSize
Here is a solution for Android 4.1 that worked for me.
Create AVD as usual over AVD Manager
Open location on the disk where AVD data is saved
open the config file that is there over the notepad. Inside should be a line that starts with the hw.ramSize line. There you should change the number of MB you want. Save changes, close file.
In Android Studio click File > Reload All from Disk
If you select View Details you should see there that ram size is changed now.
I hope it will help.
You can do so by editing the config.ini file of the int the avd settings look for this
>hw.ramSize
Editing is disabled,but you can create a new virtual device by using Clone Device.. option.Once installation of OS is complete, edit the RAM again in Advanced Settings before clicking Finish.
Further adding to the answer by Fresher, it seems that even x86 images don't work(atleast its the case with my mac OS).
Here is the screenshot:
Advanced Settings:
What worked for me:
I just used "Clone Device" in Hardware selection wizard(the first one that opens after you click on the "AVD manager"
Then setup your ram here:
Once you hit "Finish", you will see your cloned device appear in the hardware selection wizard like this:
Then go ahead as usual.
just get the emulator whith api which has no google play from x86 images,just set your ram size, then change image to the api which has google play it has worked for me
creating
changing ram size
changing android image
selecting android image
It has worked and I have play market
I updated Android Studio and now I got some problems. My emulator is pink and is zooming in automatically.
The pink and zooming in effect You experienced is a result of Skin. You can change the skin inside Android Virtual Device Manager, under Edit of Your emulator.
In Android Studio go to,
Tools\Android\AVD Manager\
In AVD Manager window, edit the desired emulator, then as below shot illustrates choose "No Skin".
Android Default Emulator is very slow.
Try Genymotion with android studio plugin.
It is faster than default and easy to use. You just have to create a free Individual account.
Also to increase speed of default emulator increase the heap size
Since the last upgrade of packages, the Android Studio/Eclipse emulator shows only a fraction of the screen.
How can I view the whole screen again?
To re-install Eclipse does not help.
Two different settings influence the display size of a virtual device. The actual hardware display size of the specific hardware being emulated (Nexus One, Nexus S, ...) and the scaling factor that the emulator applies when rendering that display onto your computer screen. Both are properties of the virtual android device, so reinstalling Eclipse will not change them, but you can edit them in the Android Virtual Device Manager or on launching your emulator.
If you run your emulator from the command line, the third paragraph of the command line help page describes how to change both settings.
If you run your emulator from Eclipse, you may want to look at the launch configuration that you use for debugging your application. At the very bottom you can give the scaling factor and other properties as additional command line arguments. Make sure this is not set.
If nothing worked until here, just create a new virtual device for your emulator from the Eclipse toolbar.
First this seemed the solution: creating a new virtual device in Android Studio solved the problem.
The same problem re-appeared today in Android Studio. I found the definite and simple soluion. You can set it explicitly in the Android Studio AVD manager.
How? Start Android Studio, menubar "Tools" > "Android" > "AVD manager". Then set the startup size and orientation. I changed it from "Auto" to the one below:
I'm using the Eclipse IDE (Juno 4.2) and the latest Android/Google ADK.
The ability to load/use custom skins seems to have disappeared. When creating a device in the AVD (android virtual device manager), it was possible to specify a skin from drop-down {skins had to be loaded into the sdk/android-##/skins}. The directory(s) are still there but adding skins does not allow/permit selecting it in any part of the virtual device creation process.
I'm running Eclipse Juno 4.2 on both a windows and mac os.
developer.android.com docs still show UI that for selecting custom skins.
Is is possible to still use custom skins is there now a restriction on skins?
The only way I've found to do this is to manually edit the config.ini file for your AVD. Change the field "skin_name" to the name of the skin you want to use and change "skin_path" to the path to the skin, relative to the sdk directory.
So if your skin was part of an SDK add-on, an AVD config.ini that looks like this:
skin_name=1280x800
skin_path=1280x800
Would be changed to:
skin_name=MyDevice
skin_path=add-ons\addon_device_vendor_api\skins\MyDevice
Or in your example:
skin_path=platforms\android-##\skins\MySkin
The Docs don't appear to have been updated for revision 21 of the ADT yet, so maybe they'll have more information in the future. I'd really like to know if there's a way to do this from within the Device Manager, but this is the only way I've found to do it.
After Update your ADT to version 21.
In Older Version each time you have to set Add Custom Screen if you want custom Device Configurations.
In ADT21 Oversion you can get this thing done by
open AVD Manager, u can define your custom screen in "Device Definition"
Alternative (Much Easier approach)
in Newest Version you Don't Need to Set Custom Device
Configurations from the above Suggestion as much easier way is available for it. you >Just Have to Make Emulator With your Device
Configurations and after you will see those Configurations with
Emulator Name Inside Graphical Layout of XML
like after Created my Emulator of Nexus7 Emulator with Android 4.2 with Name as "Nexus7_Android_4.2" i will get this Device Configuration in Graphical Layout of xml automatically.
Below is the Screen Shot of it.
Hope it will Help you.