How to resolve error: "XXXX app stopped"?

Asked

Viewed 1,043 times

9

Good afternoon,

I have an application in language C# which develops an app for android (using Xamarin). The application works normally for android of versions 2, 3, 4 and 5. However, using a device with android 6 (marshmallow), the application is loaded but randomly hangs displaying the following message on the device screen: "The XXXXX app has stopped" (XXXXX is the name of my application).

When this message occurs, on Visual Studio the following exception shall be made:

Debugger Lost Connection to the running application. Likely this Means the application terminated unexpectedly.

More Details can usually be found in the device’s debug log:

http://docs.xamarin.com/android/advanced_topics/android_debug_log

More Details:

Mono.Debugger.Soft.Vmdisconnectedexception: Exception to type 'Mono.Debugger.Soft.Vmdisconnectedexception' was triggered. in Mono.Debugger.Soft.Connection.Sendreceive(Commandset command_set, Int32 command, Packetwriter Packet) in Mono.Debugger.Soft.Connection.Object_getinfo(Int64 id) in Mono.Debugger.Soft.VirtualMachine.Getobject[T](Int64 id, Int64 domain_id, Int64 type_id) in Mono.Debugger.Soft.VirtualMachine.Getobject[T](Int64 id) in Mono.Debugger.Soft.Event.get_Thread() in Mono.Debugging.Soft.SoftDebuggerSession.Handlethreadstartevents(Threadstartevent[] Events) in Mono.Debugging.Soft.SoftDebuggerSession.Handleeventset(Eventset es)
in Mono.Debugging.Soft.SoftDebuggerSession.Eventhandler()

I already tried to download API 23, tried to update JDK, tried to change "target" in "manifest" file. But I was not successful. Does anyone know how to solve this problem?

Thanks in advance.

  • 1

    The app maybe, I say maybe, is crashing because you have to address the permission issues. You need to control the permissions of your app on Android 6.0 and higher. Read here: https://developer.android.com/training/permissions/requesting.html

  • Face I have similar problem, in Debugger mode works normal, already in the release I present the same problem.

1 answer

5

It’s hard to help you without even knowing which version of Xamarin you use. On the Internet there are several reports of users suffering from the same problem, but in older versions than the current.

I recommend you to upgrade your Xamarin and perform a clean installation.

(I wanted this 'answer' to be a comment, because it did not solve the problem directly, but I do not have enough reputation in the foruns Stackoverflow PT.)

  • I also went through this, like many others, I say about the comment, but it is necessary to follow the rules once you have accepted the policies of use of the site. In this way some people, perhaps, I say perhaps, will signal this response as "not an answer"

  • Thanks for the call. Currently on: Xamarin version: 3.9.547.0 Xamarin version.Android: 4.20.2.1 But I did a test using Xamarin 4.2 and the error continues...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.