I know the basics of the integration of the plugins and have done this before but lately I keep getting basic errors.
This time I don't even get a error the emulator is up and I can see it in running devices and it even deployed to the AndroidVM (my emulator name). Also saying it was a success and nothing happens and it was never installed on the device.
You can't deploy monodroid based apps to your device unless you've the full version of MonoDroid tools
Related
Due to some circumstances, I needed to uninstall and install my computer's java. But after reinstalling and restarting my machine, I now get this problem.
I am using Visual Studio 2019 to create an android application using Xamarin. However I cant find my android devices to run my apps.
If I click the 'Android Emulator', It opens the Android Device Manager and asks me to create a default android device every time (Even if I created one, it keeps asking).
How am I gonna show my android devices so I could run my app?
Thank you in advance :)
Please Install Google - api supported emulators
I decided to give Xamarin a try. So I followed the various articles at https://developer.xamarin.com/guides/cross-platform/getting_started/ to install Xamarin, then build an Android app. That was pretty easy, especially since I already have Visual Studio 2017 installed. The code compiled fine. I set up an Android Virtual Device and tried to debug/run the app in that AVD. Everything I've tried results in:
Build succeeded.
Unexpected install output: Error: Could not access the Package Manager. Is the system running?
Deploy failed on ...[AVD device here]
I have VS 2017 running on Windows 10.
The development experience was encouraging, since I've been using VS/C# for such a long time now, but getting past this emulator issue has, so far, been a complete roadblock. Any help would be appreciated.
Could not access the Package Manager. Is the system running?
Are you using ARM based emulator ? They are extremely slow and take lots of time to boot up. As Anubhav Ranjan said, just wait until emulator be loaded completely, once it finished it should work.
Try using an x86 based emulator, and use the Hardware Acceleration. Those run much faster, still a little on the slow side, but bearable.
When using Visual Studio 2015 to develop c++ for Android the emulator only works if you are running a Pro version of Windows, for those using Visual Studio Community who are probably also running on a Home version of windows (like me) the Emulator will not work.
Is there an alternative available that can integrate with the VS debugger?
*** Edit
I have been looking at this list Android emulators although this seems to be aimed at android gaming on PC rather than App development. So was wondering if anyone had managed to integrate one of these with Visual Studio?
Both the below options come with the caveat that I have not used either.
Xamarin Android Player
Apparently Xamarin had issues with the default Android Emulator. Primarily that it was slow, and clunky, and they were getting a lot of complaints about it from Xamarin users (despite it not being their product/fault).
They decided to create their own emulator to get around this, and it can be found here.
It should be noted that (at time of writing) this is still in Preview by the looks of things. So bugs may be present.
From what I can see on the download page, it doesn't appear like you need Xamarin to actually use it. In any case, it's worth a shot.
GenyMotion
Another option is GenyMotion. There is a free version for personal use only (with limited functionality), or a paid option that provides more capability.
Android player link has changed to here: https://developer.xamarin.com/releases/android/android-player/
I had problems starting the android VMs, even after restarting the host. There seems to be some incompatibilities between Windows 10 Home and Virtualbox 5.0.4 that Android player installs. Installing Virtuallbox 5.1.2 after installing Android player seems to have resolved this.
EDIT: I haven't had a chance to test integration with Visual Studio yet.
Everything seems to be working as expected within Visual Studio. Both of the VM devices I created in Android Player are visible in the drop down of the run menu. Visual Studio will start the selected VM when I debug the default blank android app.
The only hiccup is that Visual Studio doesn't wait long enough for the emulator to start before attempting to deploy the app. So I have to start the run again or remember to start the VM from Android Player before debugging.
I've just started a blank Cordova project on Visual Studio 2015, the intention being to use it to develop mobile apps in the future. I've been able to get it to run in the emulator on Android and even onto an iOS device (through a Mac), but I haven't been able to figure out how to run straight onto a WP8.1/Android device, or on a WP8 emulator. When I try, I get this message:
Error running one or more of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to run this project
The Android device also says, above that:
ERROR: Failed to deploy to device, no devices found.
There's very little documentation online, and because it's all so new, Google hasn't been particularly enlightening. It's possible that I'm missing some software, but I don't know what.
For the devices, it could be that I'm supposed to select the device from a list somewhere, but I can't see anywhere that could be. For the emulator, I'm assuming I'm missing software, or a setting is wrong on my PC, but have no idea what it could be.
To fix the issue with WP8:
I had been playing around with different versions of VS... un-installing and re-installing 2013 and 2015 and eventually hit the same issue as you.
The solution here worked for me:
No Emulator lists to deploy windows phone app
I do not have an android phone to test with t the moment, so I have not seen the android device issue.
i am trying to test android project developed in unity to be tested via BluStacks emulator since i don't have an android device. While trying to develop android project, i followed the ways like setting java sdk, android sdk, added sdk path, set the bundle identifier. I solved errors in the monodevelop like unrecognized variable and finally got the .apk file. I have successfully installed it in both android emulator and BlueStacks emulator. Now, when i click the installed app in the android emulator, it says "Unfotuately b has stopped", here b indicates my product name of the installed app. On the other hand,when i click the installed app in the BlueStacks,it says "BlueStacks Frontend has stopped working". When i search through the google, all it says reinstalling the BlueStacks, about graphics card problem etc. But i have installed it right and can play other online installed applications. I can not even find the logcat that could give me details about the error. When i search through the google, all i find about the logcat is involving the eclipse. But how can i set the adb logcat while my game development involves unity and BlueStacks instead of Eclipse and BlueStacks? Here i can say that there is less likely any problem with the BlueStacks emulator since i can play the online games and applications with it. I have been trying hard, please somebody knowledgeable give me your valuable suggestions.