VS2015 stops debugger after iOS app is launched - c#

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.

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?

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.

Why does my Android App freeze and can't deploy?

I am using a MAC Book Pro and I wrote my Android App in Visual Studio using Xamarin in Parallels (virtual machine).
When starting the app, it builds, but then the "mobile screen" freezes and when I stop the application then I get two Error Messages:
-) Error ADB0010: Unexpected install output: cmd: Can't find service: package
-) Error ADB0000: Deployment failed
Mono.AndroidTools.InstallFailedException: Unexpected install output: cmd: Can't find service: package
How can I fix this?
The App looks like this when I've started it
Try the below suggestions:
Make sure you have the latest Android Emulator version running.
Try a different Android version If you're using Visual Studio 2019 like me you have to go with Android 8.1 Oreo or higher.
3.Read this: StackOverflow Question
It normally caused by that the android emulator does not run well. Please check that you have installed all the emulator package.
After that, when I get this issue, I always stop the android device, in the device manager, edit to change the disk.dataPartition.size value to ‘5000M’(You could set the value according to your device.).

Android app build in c# crashes on real device, but works on emulator

I have build an android app. My application works on the emulator, but when i export the .apk file, and test it on a real device, it just crashes instantly.
I already tried unchecking fast deployment, and shared runtime. I already checked the internet permission because i have a webview. The device that I'm using is android 5.0 and the app supports that.
Try to debug the app in your device and check the log. It will be help you to find out the actual issue.
You said in your app you are using images so it may be crashes due to memory out of exception.

Monodroid Visual Studio Android App Not Copying to device

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

Categories