Week ago I created Android vms and I was able to run from Hyper-v window but i wasn't able to run from VS for Android. Yesterday I removed all vms from Hyper-v becouse i had problems with Windows Phone virtual machines. Now I have luckly working Windows Phone machines but I cant make any Android machines becouse every time when I create new machine VS for Android freeze on "Copying .vhd files and creating virtual machine". I tried to reinstall VS Emulator for Android but it doesnt help. What I have to do for fix this?
Same thing happend to me as well, and it very easy to fix this
uninstall visual studio emulator for android
restart your pc/laptop
download and install fresh copy of visual studio emulator for android
let me if this works for you
Feel Free to ask if any error occurs
Related
I have an .APK file that I want to run in an APK Emulator on Windows 10.
I currently don't have any Emulator installed - I tried to install and run Android Studio, but each time I try to run it, I get this error (translated from Danish):
The program could not start correctly (0xc000007b). Click OK to close the program.
I've tried to remove and re-install Android Studio but same error. I also tried to restart the computer and even shut down and start PC again from scratch + re-install, but same error always no matter what I do (arrrrgh!!!!)
So I cannot use Android Studio...
Instead, I've tried these other Emulators:
ApkOnline (not working for me)
BlueStacks (cannot download due to F-Secure blocking it)
LD Player (cannot download due to F-Secure blocking it)
ARChon (Chrome refuses to add this in my browser and just removes it after adding it)
Bliss OS (cannot download due to F-Secure blocking it)
Is there another Emulator that you recommend to use on Windows ?
Please notice, my PC is managed by my administrator and thus, I don't have administrator permissions etc. on my PC.
My PC does have Intel VT-x enabled in BIOS.
Thank you so much!
Usually, this issue is related to Microsoft Visual C++, .NET Framework or Direct X.
Can you confirm you have these installed and/or updated.
I decided to develop my app in Xamarin instead.
I am using windows in Mac Pro. In Windows Parallel Desktop I am keep on getting error message in Android Emulator like:
Google has stooped working
Settings has stopped working.
Pixel Launcher has stopped working.
Getting error message in freshly installed Xamarin tools in Visual Studio.
Googling suggested to clear the cache or force stop it, but nothing is working
For now I installed Android Studio on Mac and running project on Windows. By Following below link I ran few commands and Windows able to communicate with MAC
https://learn.microsoft.com/en-us/xamarin/android/troubleshooting/questions/connect-android-emulator-mac-windows
Not sure if this is right way. But running virtual device inside virtual machine is giving some problem.
Above thing is working fine. Let me know if there is any other best solution for this.
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.
Ok so my Visual Studio Android emulators stopped working this morning. First I was was receiving a networking error and so I tried to delete and re-create them, but the creation keeps getting stuck on "Copy .vhd files and creating virtual machine". The last time I tried it I let it sit on that step for over half an hour, and that was after trying first this Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3 then this Visual studio android emulator will not start fully
Oh and I completely uninstalled and re-installed Visual Studio Emulator for Android.
Any thoughts would be greatly appreciated.
I finally got a VM to download and execute after reinstalling Hyper-V (un-check Hyper-V from Windows Features, reboot, re-check it, reboot). I've gone through many of the referenced cleanup steps many times prior to trying that, though I did perform a repair of the Visual Studio Emulator for Android and deleted all of the device profiles just before reinstalling Hyper-V.
I had the emulator running once and had to remove it because I had to work with virtualBox as you cannot run hyper-v and virtual box together.
As I had the emulator running, it means that my system is compatible. I am running windows 10 with i7 processor.
The installation process went smooth but when I tried to create a virtual device the process gets stuck at
Copying .vhd files and creating virtual machine
I tried following the steps shown here Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3
But It does not work.
what is the way where I can completely remove everything and start from scratch.
Well, if you want to start from scratch, my suggestion would be, make a backup of projects, uninstall VS 15, uninstall emulator, uninstall other plug-in, clear temp, restart, then install again. Quite a long process, which is anyway should not be recommended.