I have just started playing around with Android development and looking to use PhoneGap.
Using their getting started guide (http://phonegap.com/start#android) I have got to the final step, which is running the app in an Android Virtual Device.
I have set some up and all of which cause a BSOD when ever I try to run it. I am using Windows 7.
The error message displayed on the BSOD is:
STOP: 0X0000008E
emBDA.sys - Address 8EB5320C base at 8EB50000
Thanks!
I had the same problem with file emBDA64.sys. Probably it is the same problem that I had, but you have 32-bit driver not 64-bit. This file is part of probably PVR-TV USB device. I had to turn off this device and emulator started to work well. Check, what device is this file a part of and turn off this device when using emulator. Probably it is extrnal TV tuner too.
Confirming kzez1986's suggestion that the BSOD might have to do, or always has to do (?) with a(n internal) USB TV tuner.
My Win7-64 system suffered from the same BSOD after a brand new install of the Android SDK and starting a new AVD.
When disabling a USB device, in my case called 'DVBT Hybrid TV Device' in the 'Sound, video and game controllers' section of the windows Device Manager I could now start the Android AVD without problems.
Note: Because I'm on a 64bit machine, in my case the BSOD error was pointing to emBDA64.sys.
Related
I am new to android studio, and I do not have an android phone, so the first thing I actually tried to do is to try out the emulator before I get any further into android studio, but I am facing alot of problems.
When I press on the RUN button, I do find a "Nexus 5X API 27 X86" by default, when I run it, well here comes the problems. Sometimes it runs and opens properly, but without being able to find my app on the device, sometimes the app opens automatically. The device is always so slow, most of the times when I try to open an app, I get a msg "APP(google most of the time) has stopped working" or "Android is starting.." out of nowhere, and that same msg sometimes pops out automatically when I first run the emulator. Sometimes I get "Application Installation Failed" error, found some solutions saying to trun off instant run, I turned it off and I still get the error sometimes.
Generally, it is just impossible to start coding with such device, I had an android phone before and it was much easier.
As far as I know, my laptop should easily support both the android studio and the emulator.
One more thing, whenever I try to set up a new device on kitkat or something, the device doesnt come alive, just a stuck black screen with a logo in the middle.
My laptop:
Intel Core i7-5500U 2.4GHz
4gb RAM + 8gb RAM
Nvidia GeForce 920m - 2gb
64bit
And yeah, HAXM is installed.
Android Studio 3.0.1
Any assistance would be appreciated.
You can try genymotion if you feel android emulator is slow. https://www.genymotion.com/
you can find the difference between the android emulator and genymotion.
android genymotion vs emulator
Emulator's now is much faster and better then genymotion,just create your own device going to avd manager and then try to run it,one more thing , did you turn on intel virtualization in bios ?
We are working remotely on client's virtual machine. I keep getting the VT-X/disabling hyper-V error even after doing the needful.
So, my question is , is it possible to run emulator, which is itself a VM on another VM?
If not, suggest a way to work around this problem.
Thanks in advance
is it possible to run android emulator on client's virtual machine?
I think the problem is not you are working remotely on client's virtual machine, the problem is that your Physical machines turn on the Windows feature : Hyper-V, but when you run an Android Emulator, it needs to disabling the Hyper-V, so it gives the VT-X/disabling hyper-V error.
I have test working remotely on client's virtual machine and turn on the Hyper-V. When I run an Android emulator from Android Studio, it failed and gives me the error message :
To solve this problem, you should turn off your hyper-v and restart the computer. If you cant do this, you could try using Visual Studio Emulator for Android. As the document said :
with Hyper-V compatibility you can run the emulator side-by-side with the Windows Phone Emulator and other Hyper-V VMs
Then, you could run the Android emulator.
I don't know about what happens in a VM.
But, emulator is not possible in nested VM. I found that out while installing android studio when I got the error message explaining the same.
Regarding working emulator with VM, we can go with #Grace Feng
Today I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application but weren't able to run it. With adb I can install it without having any problems.
However, if I try to do it with Android Studio, it gets stuck on 'Installing APKs'. The same happens when I try to start it in an emulator (gets stuck on 'Waiting for target device to come online').
My device is a Samsung Galaxy S3 with LineageOS (Android 7.1.2) and root permissions. Android Studio recognizes my phone properly.
What I've already done:
installed openjdk
set android_home
installed all the SDK-platforms since Android 4.3 and Android Emulator from SDK tools
enabled USB-debugging
tried with MTP and PTP
tried another emulated phone
installed lib32stdc++6
restarted my computer
and probably much more
I tried to do it the whole evening and couldn't find a solution. Is there something Debian-specific because I can only find instructions for Ubuntu? I have never experienced anything close to this on other systems.
Thank you in advance.
EDIT: I am now able to use my phone to run the android application by using USB 2.0 instead of USB 3.0! Is that a normal behavior since it works with native adb? I mean, if I buy a new PC after some years which has got only USB 3.0 ports, will I not be able to use phone debugging with Android Studio or is this just an issue? It is still known since 2014 (https://stackoverflow.com/a/9548311/8292104).
However, I still cannot get the app running on an AVD. I changed graphics to software, now it shows the phone but the screen remains black and the phone won't start. What can I do to fix it?
Try to completely delete and install Android Studio again, I think that it will solve the problem
Another possible solution that worked for me is to, in the application, go to
app - build - intermediates - split-apk - debug - slices
and then delete all of the contents within this folder. Then again, this only worked for me, so I would duplicate the document in case of corruption.
I am very new to Android development. I am trying to create and run an app from tutorial - https://developer.android.com/training/basics/firstapp/creating-project.html
But while running app it is showing me "No USB devices or running emulator detected" in Select deployment target dialog.
Background and what I tried:
I am using Lenovo K4 note Vibe.
Android version 5.1
I have enabled USB Debugging from my phone also checked "Enable OEM unlock"
I have selected USB "MTP" as connection mode when I connected my phone to machine.
I am using windows 7 and Android studio version 2.3.2
My device appears in "Device Manager" of my system i.e. It is installed properly.
When I connect my phone to my system it shows AutoPlay dialog, asking to run "Run Lenovo_suite.exe", I tried to see if my deice appears in Studio when I allow to run that app, but still no luck
I also tried by checking and unchecking "Enable ADB Integration" from Android studio, still no luck
I have already installed Android SDK for verion 5.1
I have also tried installing "Google USB driver".
I also tried connecting my device to all of my machine port
I am tried using Emulator, but it is really very slow on my machine, it takes around 2-3 hours just to boot. So, I am using my phone.
Your assistance in this matter is greatly appreciated
this problem just happen when your USB connection mode is not work in debug mode, Like:
File Transfer Or MIDI device
The Charging Only is Work in android 5 and above
GoodLuck
a addition to above answer i think if you try to debug it , you will get better result since android if had problem throw a error that says restart adb.exe ,
another thing whats your hardware config ?
and have you tried genymotion , i prefer it over android virtual device , working with a real device is better , but i prefer when to concentrate on monitor have device on it ;)
As per My experience many device not connect
So you need to try this Windows Software to detected your android phone
Install it on your windows system PDANET+
Thanks for your support guys. After 2 hours of struggle I found below:
When I connect my device to the machine, it shows me a AutoRun dialog to Run Lenovo_suite.exe(Which I mentioned in my question), but instead of auto running, I explored that newly created lenovo drive, which had 2-3 setup exe's(usb drivers and magicPlus), I installed both and restarted my machine. When I run MagicPlus software, it helped me to Authorize USB debugging with some kind of fingerprints. And now my device appeared in studio.
I have tried everything(reinstalled, open as administrator, etc) and it's still not opening the Android 5.x and 6.x emulator.
The error message is :
Unable to start the virtual device.
The virtual device got no IP address.
The VirtualBox DHCP server has not assigned an IP address to the virtual device. To find a solution, please start Virtual Box.
I have followed this tip and this but the error message keeps.
I'm using a Windows 10 Pro.
Any other tip without the need of reinstalling the Windows?
Update:
Hey man I think I caught your problem.
1) Please Open VirtualBox and and Then right click on your Virutal Machine.
2) Select Settings.
3) Open General Setting from the left panel.
4) Open the Basic tab.
5) Choose Linux from the Type option.
6) Then choose Other Linux(64-bit) in the Version Section.
I have tried the option of 32-bit mode in my PC and the same problem happens as you asked in your question. So, select 64-bit mode to make it run.
Note: Android 5.x and 6.x are based on the 64-bit architecture. If you
selected the Other Linux(32-bit) option. Then Virtual Box will try to
emulate a 64-bit program in a 32-bit virtual machine type, which is
not possible.
So, Please make sure that you have selected the Other Linux(64-bit)
option for Android Versions higher than 5.x. (You can run Android
versions upto 4.x in the 32-bit mode.)
Old Answer:
No, You don't need to reinstall windows. It is not an operating system
fault.
I faced this problem.
It is due to the Antivirus Program.
If you have any antivirus program then just disable it and TRY
AGAIN.
You also don't need to set any compatibility mode.
Currently, I am using Genymotion(Version 2.6.0) and
VirtualBox(Version 5.0.12 r104815) in Windows 10 Pro without any error.