impossible to create emulator with android studio - android

I have a problem with the android studio emulator. When I try to create the emulator I got the following message:
ERROR CREATIN AVD, an error occured while creating the avd, see idea.log.details
I followed the recommendations for the configuration of the emulator.
What could be the reason for this error?
My configuration: I have a MacBook Air 2014 and OS x El Capitan (10.11.6)
I choose X86 or X84_64
Thanks in advance.

The Android Developers website has a comprehensive and detailed tutorial on how to properly set up your emulator. Please follow the tutorial below as well as my suggestions for success:
Make sure you have the latest version of android studio installed
On the top menu, select Help -> Check for Update and install any new updates that the IDE recommends.
The following command worked for a Linux user encountering the same issue. It is worth a shot, but I doubt that is the reason for your error: sudo apt-get install lib32stdc++6
Perhaps you didn't install android studio properly and you are missing some plugin for the AVD. To be 100% sure, follow the below tutorials from Android on how to properly set-up your AVD.
References
https://developer.android.com/studio/run/managing-avds.html
https://developer.android.com/studio/install.html
AVD emulator error in android studio

your HAXM is not enable
pls enable it from bios
go to Bios-> find Intel Virtual Technology-> Enable

i find this : he say go the terminal (mac os) and paste : sysctl -a | grep machdep.cpu.features
I think we have targeted the problem. I made the recommendations (make this copy paste in the terminal), I checked that the option was activated in my SDK, always this damn error ...
The bios for mac os (from the internet it is not accessible).
thank you

Related

AVD not launching after upgrading android studio and the SDK

I have a problem whenever I try to launch the emulator from Android Studio, after the loading bar finished, the emulator is not showing or starting. This problem occurred after I updated the Android Studio to its latest version. I also tried to update the SDK but no luck, the emulator still won't open. My OS is Windows 10. And my SDK Path is in drive D.
Android Emulator Version : 26.1.4
Android SDK Tools Version : 26.0.2
Android Studio Version : 2.3.3
Thank you in advance.
I'm on Linux, so it's just a guess, but on my platform, I had to add -use-system-libs to the start command, so that it looked like this:
emulator -netdelay none -netspeed full -use-system-libs -avd Pixel_API_24
Don't know if this helps, but maybe it's sth. like this.
Check whether there is an update available for the emulator system image. If found, please update it.
Another solution is check whether your laptop supports VTX Technology based on which the recent emulators are developed. This link will help you https://www.technorms.com/8208/check-if-processor-supports-virtualization

Cannot deploy app to emulator in Android Studio - "unknown avd"

I made a simple hello world app which I would like to deploy to an emulator in Android Studio.
This used to work before for exactly the same project (I installed all necessary packages) but this time for some random reason, in the run options when I select "Target: Emulator", under the "prefer Android virtual device" I get the following in red: "Unknown AVD".
I've googled around and the answers vary. The answer that seems to make the most sense is:
You have to install all Intel Image Library and Google API for your
desired API. Go to your SDK Manager and check intel system images is
installed or not if not then you have to installed it as well install
Google API Library.
However I don't have these "Intel Image libraries" and "Google API" options in SDK manager. Are these shorthand aliases for other names in the options?
Any ideas on how to get the emulator up and running?
A bit of information on my environment:
Android Studio 2.3.3
Windows 7 Professional 64 Bit
Gradle Version: 3.3
Selected SDK Platform Package: Android 7.1.1 (Nougat)/ API Level 25
Revision 3
Virtual Device: Nexus 5X API 25
Try to kill the adb server and restart it.
Locate your adb binary (linux/osx) or adb.exe (windows) and do:
adb kill-server
adb start-server
this should fix your problem
Even if your problem still not solved then Restart emulator.
Locate the adb.exe by going to where your sdk is installed and go into platform-tools. Mine is the default and also the most common (C:/User/$USER$/AppData/Local/Android/sdk/platform-tools/)
After that kill the server and start the server back up. That might fix it, if not drop a comment and let someone know that the problem isn't yet resolved someone may be able to help.
this problem may be related to the version of the gradle file of your application. Try this:
goto Android -> Gradle Scripts -> Build Gradle(Module :app)

Ubuntu 16.04 - Genymotion: /dev/hw_random not found

I install Genymotion on the Ubuntu 16.04 64Bit. I created a virtual emulator for Android 6.0 then I run this emulator but emulator is disappearing and the emulator is running background. I checked the emulator on the VirtualBox and I saw this issue:
I solved the issue:
System Settings > Software & Updates > Additional Drivers :
Then you click Apply Changes button and you restart your pc.
I don't know reason of the issue, open source driver is not running for Genymotion but NVIDIA is running.
I had exactly the same issue as in the image but i am using Windows 10 and the version of Genymotion is 3.0.1, so the problem was that my graphics card no longer matches Genymotion requirements. So simple solution was that I had downgrade Genymotion to 2.12.2.
https://dl.genymotion.com/releases/genymotion-2.12.2/genymotion-2.12.2.exe
Just go to your install directory and delete the libdrm.so.2, then restart.
Use command:
cd /genymotion/install/directory
mv libdrm.so.2 libdrm.so.2_bk
And then restart.
Here is the reference: Genymotion is not working
For those who struggled with this problem, I just could not get it to solve - tried different versions of virtualbox to see what is compatible with genymotion etc
Finally I directly downloaded and android vdi from here
http://www.osboxes.org/android-x86/
and installed it as in
https://blogs.oracle.com/oswald/importing-a-vdi-in-virtualbox
wwhew ... that worked
Hope that helps
Update your genymotion and Virtualbox...
this way fix problem

Android Studio update broke my emulators

I just did an update to Android Studio 2.0 and several components. Now whenever I try to run an emulator, it gives an error saying
CPU acceleration status: HAXM must be updated (version 1.1.4 < 6.0.1).
I've checked. HAXM is updated to 6.0.1. I've restarted, rebuilt an emulator from scratch, and none of that helps.
I just needed to run sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
If you're using Mac, just running the dmg or silent_install.sh will solve the issue.
dmg's path is (silent install script is in the same dir also):
path_android_sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_6.0.1.dmg
Uninstall HAXM from SDK manager
Again install HAXM in SDK manager
Now goto sdk_path/extras\intel\Hardware_Accelerated_Execution_Manager and double click on intelhaxm-android.exe
After completion of above steps try to run emulator.
(I got same problem, did above steps worked as expected.)
Using: Windows 10
Tested: May, 03, 2016
This is what worked for me without uninstalling anything:
1. Download INTEL HAXM from Intel site
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement
2. Locate the HAXM folder in your PC - in my case this is the path:
C:\Users\my_user_name\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Note: if you can't find the folder, you probably don't have HAXM installed and this steps will not work for you
3. Extract downloaded file (in my case --> haxm-windows_v6_0_1.zip <--) in HAXM folder from step 2 and overwrite all duplicate files if needed
4. Install the updated version by running --> intelhaxm-android.exe <-- located in folder from step 2 and follow installation process
Well, Google already is working on new built from scratch emulator, so it might be some problem with exisitng ones
I recommend you nowadays, as you have upgraded your Android Studio to 2.0 version use temporary Genymotion emulator: https://www.genymotion.com
It uses HAXM, it's much faster than Google's default emulator, and has some useful features like faking GPS localization.
Give it a try. I'm already using it and that's why I am highly recommend you this.
Sorry, that I haven't respond clearly to your question, but it seems to be an Android problem, and you should to downgrade it to previous one.
To avoid that, please try to use Genymotion emulator.
We need to install intel HAXM updated version ( search in google ) after issue resolved now I can see my emulator.
Thanks

Unable to launch android emulator in Mac

I have been working on an android project, I am using android studio on my iMAC[Software OS X 10.9.5, Graphics Intel HD Graphics 5000 1024 MB, Processor 1.4 GHz Intel Core i5].
When i try to open my application on an android emulator it get this error-
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
I can find so many similar issues with solution on Google & SO, but i am unable to use those solutions for MAC???
I followed all the steps given here but with no luck, still unable to launch emulator. I think there is something to do with mac os.
Can anyone tell me how to do this on MAC ??
Thanks
First, make sure that the Intel HAXM is up to date. You update it by opening the SDK and selecting it in the list. (As of 2016-07-08, the latests HAXM version is 6.0.3).
Then, on Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/, therefore, you will need to run the script as sudo, as follows:
sudo sh ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
If all goes well, the script prints the message: "Silent installation Pass!"
Then, restart Android Studio and run your app with the desired AVD.
I know I'm late, but here it goes.
Delete all AVD's that you currently have.
Go to Preferences >> Android SDK >> SDK Tools
Uninstall Android Emulator
Restart Android Studio.
Re-install Android Emulator from the same place.
Create a new emulator. And Voila !
What i personally did, in the process of fixing this.
I actually re-installed entire android studio. Followed this
Fixed my $PATH variables. Followed this
Then i tried re-installing Android Emulator, which worked for me.
Hope this Helps.
Problem in my case turned out to my .zshrc where my ANDROID_HOME was exported to a wrong value. Take a look at your .bashrc or .zshrc

Categories

Resources