About Live Player and debugging

E1sh3rzE1sh3rz Member ✭✭
edited August 2018 in Xamarin.Android

Hey Guys,

i have a problem with my project. If i debug my app with the Xamarin Live i have no errors etc. But if i packed as apk and install the app on my device (P10)the app crashes.

after many hours i know, that all errors comes from my code with SQL. I use ADO.net.

have u any idea where is the problem?

Thank you for all tips and ideas.

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    @E1sh3rz
    Could you please post detailed error message and related codes? Feel free to remove any sensitive information like connection strings etc.

  • EricSchmeckEricSchmeck DEMember ✭✭

    Hi, check if you have set all needed permissions including Internet permission.

  • E1sh3rzE1sh3rz Member ✭✭

    @jezh i dont have a error message. On the debugging with the live player the app works fine. But on the device crash the app.

    I found the problem:

    error: this.id = (int)reader["Id"];
    works: this.id = Convert.ToInt32(reader["Id"]);

    in the future i use USB-debugger.

    Thank you for your time.

Sign In or Register to comment.