android emulator x86 close immediately - java

hello i have problam with android emulator x86
when i run emulator x86 close immediately error message “qemu-system-i386.exe has stopped working”
full in cmd:
Failed to open /qemu.conf, err: 2HAX is working and emulator runs in fast virt mode.emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port:5037vcpu run failed for vcpu 0
i try to reduce ram from 2048 to 512mb pick low res device use software opengl try cold and quick bots
no matter I do it show the same error and close immediately
i have no problem with armv7 emulator work fine
run windows 7 64bit ultimate last update
i search many solutions on stack but it won't work
any id how i can fix this?

Your Avd is trying to search for a qemu.conf file in the root drive of where your android sdk is. To suppress this Create a qemu.conf file in the root drive of your Android SDK.
Example: G:/qemu.conf (G is my android sdk drive)
this is not the cause of your android SDK stopped working. because i had this error too. its some kind of bug of avd in the new Android studio/avd version.
Try this and see if your emulator still stops.
go to terminal of your android studio and give this command
(FOR WINDWOS)
CD PATH_TO_YOUR_SDK_EMULATOR_FOLDER
emulator -avd NAME_OF_YOUR_VIRTUAL_DEVICE
example: emulator -avd Pixel_3_XL_API_29
you can get your avd names using:-
emulator -list-avds

Related

android studio Launching 'app' on No Devices - The app is unable to install

I ran my app few times on my physical device, and it wroked perfectly. Now i'm trying to run the app on virtual device. Not showing any issues in every time, but the app was not installed on the virtual device. I want to emphasize that it worked before I tried on the physical device. When i press the "Run" window, it shows a message: "Launching 'app' on No Devices".
Then i tried to delet all the virtual devices and set new devices. Still the same message.
How can i fix it?
I also faced this issue. I wiped out data from AVD manager and it is working fine after wiping out data.
In my opinion, Android Studio has a problem in detecting virtual devices! check the AVD Manager window again, and also, check the module you want to run, then restart Android Studio.
Free up some space in the Avd folder. Delete unnecessary virtual devices, which might take LOT'S of space. You can also free up some space in general in drive.
Make sure Intel x86 Emulator Accelerator is installed
Make sure that the needed SDK is installed (for the virtual device you're using). Just see that the API of that virtual device is installed in: File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK
Try quiting the emulator. Then in AVD Manager under your problem device click on the down triangle in Actions column and select 'Cold Boot Now'.
Running Android Studio 4.1.2, and this still seems to be an issue from time to time.
I found that running adb kill-server solved my issue, rather than the other suggestions here. No need to wipe data, cold boot, or restart Android Studio.
Do three things
check the Android virtual devicve (AVD) is installed . file-> setting ->appearance and behavior -> android sdk
Check the installed andoid is only used while running . I had installed android11 but my AVD was running noughat7.1.1
Wipe out data from AVD manager . Dont worry only temp memory will be vacated n no any installed sw will go.
After doing this mine problem of
"running on no device " is gone . Enjoy

Android Emulator Failing to Run

When I am running the Android Emulator it loads the application but does not pass the initial black screen. Eventually, the emulator closes automatically with the below message
"Emulator: Process finished with exit code -1073740791 (0xC0000409)".
How can I fix the above issue? Do let me know if anyone has any solution
Go to :
Tools-> SDK Manager-> Android SDK -> SDK Tools-> Android Emulator(if check unchecked) uninstall it and then reinstall and also check The intel x86 emulator accelerator (HAXM installer) same uninstall and reinstall

Android Studio - pushing app to phone, won't let me

EDIT: running Windows 8.1
Fully up-to-date Android Studio detects the phone (rooted Samsung Note 3 on 5.1). It's compatible. Developer Mode is active, USB debugging on, etc. Never had a problem connecting the phone for dragging and dropping.
However, whenever I try to put it on the phone...
Installation failed with message null.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application? (YES / NO)
No matter whether I press yes or no, I will get the same error.
Target device: samsung-sm_n920t-93eb26a9
Installing APK: C:\Users\user\AndroidStudioProjects\CopySunshine\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/com.sdg.copysunshine
Installing com.sdg.copysunshine
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.fox.pac"
pkg: /data/local/tmp/com.fox.pac
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.INSTALL_PACKAGES.
DEVICE SHELL COMMAND: pm uninstall com.fox.pac
I can use emulators (like Genymotion) just fine, it's just that having Android Studio / Emulators make my computer run hot at times, so I'd rather not do it if I can...
A solution I've tried is putting "android.permission.INSTALL_PACKAGES." into the Manifest but then I get a message that only system apps have that privilege.
I have another phone, a rooted S4 that running on 4.4.2. but whenever I connect that, the phone's UI crashes completely... that's a whole different issue.
Not sure if this is the problem, but make sure you have installed Samsung Kies, available here:
http://www.samsung.com/uk/support/usefulsoftware/KIES/
Without it you will not be able to run your Android Studio apps on Samsung devices.
First off, some rooting techniques screw a few things up so it could be that the root caused the problem.
Nonetheless, could you include which OS you are running Android Studio on?
Did you get the promt to authenticate. Maybe revoke authentocation from the developer options and try again.
I had the same problem one day and I solved it by reinstalling drivers on my computer for the device. Then when I run as administrator I am able to deploy my application without any problems.
Also try to uninstall the app from the command line.
~ adb uninstall com.yourpackagename
A few other commands to check if everything works:
~ adb devices
~ adb install com.yourpackagename

I cant install intel haxm

Hi friends there is problem when i run emultor in android studio in my lapto (aser aspire 5250) it shows me error msg "haxm is not installed" so i have cheked it and installed and now it shows as installed status but when i started emulator again it shows haxm is not instlled so i trace full path of sdk and tried to install haxm but at that time it shows me that your laptop does not support this so help me so that i can run my emulator in android studio for learning...
haxm uses your computer's virtualization engine to improve your emulator's performance. Try searching through your BIOS settings for some virtualization setting and make sure its enabled in there.
If there is no option or your computer doesn't have this feature, you can always disable the "Use Host GPU" option for your virtual device in its AVD settings.

Android development environment difficulties

Lately I've been having problems developing Android applications. I'm in a Windows XP environment, using Eclipse 3.5 with the ADT tools. The emulator takes a bit of time to load, but that's always been normal. What is not normal is that when I go to run my program in the emulator at least 50% of the time Eclipse cannot connect to the emulator and either I have to use adb kill-server && adb start-server or restart the emulator or restart eclipse.
This has been happening with so much frequency that it is becoming very problematic. Should I put a newer version of eclipse (3.7) to replace this one? Any other things I can try?
Android development should be smoother as many people are developing Android apps these days.
Try Android x86. It works much more faster than Google Android emulator. Follow these steps:
Install VirtualBox.
Download iso-file that you need
Create a virtual machine Linux 2.6/Other Linux, 512 Mb RAM, HD 2 Gb. Network: PCnet-Fast III, attached to NAT. You can also use bridged adapter, but you need a DHCP server in your environment.
Install Android x86 on the emulator, run it.
Press Alt+F1, type netcfg, remember the IP, press Alt+F7.
Run cmd on your XP, change dir to your Android tools dir, type
adb connect <virtual_machine_IP>
Start Eclipse, open ADT plugin, find the device, enjoy!
Source : Why is the Android emulator so slow? How can we speed up the Android emulator?

Categories

Resources