Hello, I'm new to xamarin, I have a problem, I'm developing an app that uses some libraries or references, when I compile the project works fine on my mobile device, but when I generate the apk it installs successfully on the cell phone but when I try to log in Stops the app. My theory is that some assembly is not included in the APK, but it's just theory someone can help me. In debugging mode works in release mode generating the apk not quite right.
@Jose Antonio Chavez Verdin,
After selecting release mode follow the below steps
1.select properties in .droid
2.In properties-Application-Target framework-select use latest platform(Android 6.6(Marshmallow))
3.Now in Android Manifest- Install Location-select Prefer Internal, set minimum Android version to you requirement(Ex:Android 5.0(Api Level 21- Lollipop), And select Target Android Version to Android 6.0(Api Level23-Marshmallow)
4.Now in Android options when you select Release mode then by default Use Shared Run time and Use Fast Deployment will not be active. Here select linker properties and select SDK assemblies only.
5.Now save the save the solution - clean the solution-Rebuild The solution-Archive -after archiving select to distribute - select AD-Hoc- create an account-then save as-then open distribution-Here you will find working apk file .
Go a head with the above process for sure you can generate working apk file.
Hi everyone, I already tried everything that I have recommended and I thank you very much, but still not working, check the sale out and I in the message account that is seen in the image that I attached to this message, look at google but I did not know the answer to that problem. I think that is the problem by which my APK does not work, I think some assembly is not going to the moment of release.
Answers
Check the linking options between the different release modes. For instance, in Debug mode may have "SDK Assemblies Only", but Release mode may have "None".
If that is not the issue, then use Device Monitor to view the stack trace from the device and that should give you a hint as to what is wrong.
Thanks a lot for the suggestion, the probe as you tell me, but it still does not work when I generate the APK, but when I run the app in debug mode it works fine.
Try this link
https://developer.xamarin.com/guides/android/deployment,testing,_and_metrics/publishing_an_application/part_1-_preparing_an_application_for_release/
and try in release mode
Not work DarshanJS, make all article and not work en release mode only debugg run fine.
@Jose Antonio Chavez Verdin,
After selecting release mode follow the below steps
1.select properties in .droid
2.In properties-Application-Target framework-select use latest platform(Android 6.6(Marshmallow))
3.Now in Android Manifest- Install Location-select Prefer Internal, set minimum Android version to you requirement(Ex:Android 5.0(Api Level 21- Lollipop), And select Target Android Version to Android 6.0(Api Level23-Marshmallow)
4.Now in Android options when you select Release mode then by default Use Shared Run time and Use Fast Deployment will not be active. Here select linker properties and select SDK assemblies only.
5.Now save the save the solution - clean the solution-Rebuild The solution-Archive -after archiving select to distribute - select AD-Hoc- create an account-then save as-then open distribution-Here you will find working apk file .
Go a head with the above process for sure you can generate working apk file.
Hi everyone, I already tried everything that I have recommended and I thank you very much, but still not working, check the sale out and I in the message account that is seen in the image that I attached to this message, look at google but I did not know the answer to that problem. I think that is the problem by which my APK does not work, I think some assembly is not going to the moment of release.
sorry i mark few post as anwers, really not yet
I have the same problem, try all of the above and it doesn't work ...