Monodroid Visual Studio Android App Not Copying to device - c#

Hi I am new to the Android Application world. I have installed the Monodroid plugin for Visual Studio. I created a new Mono for Android Application. The project builds, I start my emulator, I select my emulator in the Select Devices dialog, the dialog then states Copying application to device... the dialog then goes away. However, the application never appears in my emulator. There are no errors the project builds fine, but the app never appears in the emulator. has anyone run into this before?

My guess is the app is starting and crashing quickly. Check the Android Debug Log to see if there are any exceptions or messages there.
http://docs.xamarin.com/android/advanced_topics/android_debug_log

Related

Xamarin Forms - Android App Crashes on Physical device

I am building an app on Xamarin Forms Framework and my app crashes when installing on a physical android device.
It gets fixed when I clear storage and run it again, then my app wont crash and runs good,
But every time i reinstall my app it first crashes.
Another weird thing is Release Built and Debug Built run well on the visual studio debugger.
I am working on trying to fix it all day but no success tried to cancel Optimize my Code, tried to disable link but nothing.
Edit: I use a Mac so I tried to move my project to my Windows PC and released the app to my physical device and it works well, maybe its a Visual Studio Mac Bug?

Xamarin Hot Restart Not Working on Windows, Visual Studio 16.9.2

I am trying to do physical testing for an iOS app using Xamarin Forms following this tutorial: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart, but I am running into a problem when trying to debug to an iPhone or iPad. There have been no issues doing physical testing on Android through usb or simulation testing through MacInCloud, but I run into this error when deploying to iOS through usb for testing:
"Xamarin.iOS does not support running or debugging the previous built version of your project. Please ensure your solution builds before running or debugging it."
My Apple Developer Account is successfully linked to Visual Studio and I have iTunes installed, so I don't know what the issue could be relating to. I have tried all the common fixes, such as cleaning and rebuilding the file, restarting visual studio, and trying multiple devices.
I appreciate any help I can get.

After archiving xamarin forms app to apk, it does not work

I have my xamarin app, when i start it form VS2019 in Release or Debug mode it works great.
If i archive it with visual studio, sign and install to mine or other android phone, it crashes.
APK can't get SQLite table, because i truncated that at start. Logcat helped me understand what the problem is.

VS2015 stops debugger after iOS app is launched

VS2015 stops debugger after iOS app is launched and i am getting error in console
Launching 'Sample.iOS' on 'I phone 4s'...
The app has been terminated.
You get this error when your app crashes. Your application code is crashing the app at runtime. You could check the iOS device log to figure out the problem.
Also, I found that adding a winphone or UWP project to a xamarin project helps you debug. The errormessages windows devices give are a bit more descriptive.

unable to get MonoForAndroid_API_14 in Visual Studio 2013 Professional with Xamarin installation

I'm trying to build an android application in C# using Visual Studio with Xamarin for visual studio(included). With the basic installation, I tired to create a basic "hello world" program. Successfully built the project, selected MonoForAndroid_API_10 and tried start Debugging.
It shows pop-up as your google emulators are slow --> discarded this pop-up -- I was expecting my output as a blank screen with hello world text at center and nothing more than this. But, the Emulator shows the output as a mobile application (with a lock screen and built-in apps), not the one I was expecting.
I anticipate like if I'm missing to enable MonoForAndroid_API_14 and later versions.
I couldn't information regarding how to enable MonoForAndroid_API_14. I installed all the packages using the Android SDK tools. But couldn't get the emulators to execute my project.
I was expecting my output as a blank screen with hello world text at center and nothing more than this. But, the Emulator shows the output as a mobile application (with a lock screen and built-in apps), not the one I was expecting.
When you run the emulator, it starts Android like a normal physical Android device. Your app is then deployed by the Xamarin Runtime and you can access it like any other Android app from your device's main menu. Scroll down the menu and behold your installed app right there.

Categories