Xamarin Forms - Application closes when access certain Forms

Asked

Viewed 106 times

0

I’m having a problem in APP, the application works perfectly when debugging it being on mobile(android) as in emulator. However, when I put it in production and installed by Google Play, only some of the pages open, the others close the APP, something that does not occur in the emulator/mobile connected, I tried to put a Try/catch to try to catch the error before closing the APP but it did not take effect. There is something I can do to debug the APP in Release/Production mode, after published?

  • A little complicated to define well what the error may be, but possible solutions are to review the issue of memory usage, your app may be too "heavy", it may also be a conflict with the Nuget packages you are using. If you want to record errors that occur in release mode, one option would be to use a database, it can be local even, such as Sqlite and create a LOG table to record the errors that your Try catch detects.

  • Google has the Google Play Console

  • connects the app to the microsoft appcenter...

  • @Rafaeltavares does, but does not record the error. I have tried.

  • @Netocosta I have 15 or more pages in the app, Home, News and Articles and their respective Views, work perfectly, I can enter and exit as many times as I want, but if access the other pages the app closes, the two that open pull images out of the app, from the internet, if I try to open another page that is just text, close the app. I will try to register in SQL Lite as you made the suggestion. link Link to the APP

  • Tipo: android.runtime.JavaProxyThrowable&#xA;&#xA;android.runtime.JavaProxyThrowable: at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00076] in <c91e4557b87e40c8a0a46d9917fc2b99>:0&#xA;at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in <c91e4557b87e40c8a0a46d9917fc2b99>:0

  • At System.Activator.Createinstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <c91e4557b87e40c8a0a46d9917fc2b99>:0 at System.Activator.Createinstance (System.Type, System.Boolean nonPublic) [0x00000] in <c91e4557b87e40c8a0a46d9917fc2b99>:0 at System.Activator.Createinstance (System.Type type) [0x00000] in <c91e4557b87e40c8a0a46d9917fc2b99>:0

  • at MundoSindicalAPP.MainPage.OnMenuItemSelected (System.Object sender, Xamarin.Forms.SelectedItemChangedEventArgs e) [0x0006d] in <8be3ae177cd140baa4a832a5ae409ea0>:0&#xA;at (wrapper delegate-invoke) System.EventHandler`1[Xamarin.Forms.SelectedItemChangedEventArgs]. invoke_void_object_TEventArgs(object,Xamarin.Forms.SelectedItemChangedEventArgs)&#xA;at Xamarin.Forms.ListView.OnSelectedItemChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00028] in <2cae22007fa84047aa54c84946cbb6ca>:0

  • Try looking at this link, this may be a problem in your Binding context: https://forums.xamarin.com/discussion/83929/listview-bindingcontext-error

Show 4 more comments
No answers

Browser other questions tagged

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