I have been using Xamarin to develop some Android applications. I am now using Xamarin with Visual Studio and I have a question.
My question is this... How do I deploy my app to the emulator? I have started the emulator, but am not sure how to do this in Visual Studio.
May I please have some help?
Thanks in advance.
EDIT
I have followed the steps on the page and the steps do not work.
If I do this:
Debug->Start Debugging, the following message appears:
Device: [A]-AndroidAPILevel17NonGoogle is either not running or not attached.
Please attach an Android device, or select an emulator from the dropdown list to launch it.
NOTE : Launching Android emulators can take a few minutes. Please be patient or use a real Android device, they are much quicker!
I can start the emulator by doing the following:
Tools->Open Android Emulator Manager
and then selecting the emulator.
However, once the emulator has started up, I am not sure how to deploy the application to the emulator.
If I select:
Debug->Start Debugging... nothing happens
May I have some help please?
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 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.
I installed Microsoft's Android Emulator from here which can now work without disabling Hyper-V on Windows 10. I was following the instructions in this post and everything was working smooth until yesterday. I was successfully able to debug my app in MS android emulator.
Today morning I closed the emulator and started it again. Now, When I start running the app to test it then the MS Android emulator is not showing up in Select Deployment Target window of Android Studio as below. Nexus 5X API 28 emulator visible under Available Virtual Devices is Google's Android emulator which doesn't work with Hyper-V enabled due to reasons mentioned here.
I've already launched the MS Android simulator and it is up and running:
I can see it running in Hyper-V as well as shown below:
Not sure what happened suddenly and it stopped working altogether. Can anyone suggest me the reason behind it or I'm missing something?
If it didn't detected by IDE, try to rerun the emulator and check if it is detecting again or not.
Also, you can try this too:
Tools -> Android -> Enable ADB Integration
If it is already enabled, try to disable and re enable it, seems like this works most of the times.
EDIT: You may want to check:
https://stackoverflow.com/a/38788436/4409113
Changing the value Path then running following commands:
adb kill-server
adb start-server
Might help.
I happened to resolve it by chance. Sharing my experience in case it helps someone in future.
Initially what I was doing is as below:
Start Visual Studio Emulator for Android application which contains the list all the device profiles.
Choose an appropriate device profile and install it.
Run the installed profile and launch the emulator.
Start Android studio, open the project and launch the app.
I simply reversed the above steps to resolve my issue. First close everything including Android Studio, emulators, device profile window etc.:
At first, start Android studio, open the project and hit Run app button to show Select Deployment Target window.
Now, start Visual Studio Emulator for Android application which contains the list of all the device profiles.
Choose an appropriate device profile and install it.
Run the installed profile and launch the emulator. Wait for the Android operating system to get started fully.
The Connected Devices section in Select Deployment Target window would refresh on its own to start showing Microsoft's Android Emulator.
The adb.exe can be seen as an infected file by antivirius software. So need to exclude once reinstated.
I'm a beginner in Android development, and I'm trying to figure out Eclipse and the development environment and how everything is set up. I found a guide on developer.android.com, but it really isn't helping to get my test app running on my devoce. I've connected my Nexus 5 to my PC, I've enabled USB Debugging and all that. I have a simple app created... but when I try to run it, it only wants to run on the Virtual Device. The guide I'm following just says "Enable USB Debugging," but that doesn't seem to do the trick. What am I missing? How do I run my app on my device?
You need to install the Google USB Driver, which comes in the Android SDK platform see more here: http://java.dzone.com/articles/how-enable-usb-debugging-nexus
I'm newbie in Titanium Studio and I have some weird questions:
- When I choose a new Mobile Project and trying to Run under the Android SDK Emulator,
I able to see the phone screen but when I'm going in the emulator to the apps list, I cant see the application I just created...
any ideas?
thanks.
When you hit Run it is automatically installed in your device/emulator.
Be sure it was successfully installed in your emulator first, please see:
Android troubleshooting
The initial launch of the Android emulator can be quite slow and Studio may timeout before it can install and launch the application. If this happens just click Run in Studio again. Subsequent launches should not time out on the same virtual device.
http://docs.appcelerator.com/titanium/latest/#!/guide/Creating_Your_First_Titanium_Apps-section-37541502_CreatingYourFirstTitaniumApps-AddaTableView