question

AlegriaKilandaPedro-2869 avatar image
0 Votes"
AlegriaKilandaPedro-2869 asked ·

How do I create apk file using Xamarin.Android.X?

Hi, I'm trying to generate apk with Xamarin.Android.X, but I'm getting a lot of errors. The project is deploying on the phone, but does not create apk.

Xamrin.forms - version: 4.8.0.1687
Xamarin.AndroidX.Migration - version: 1.0.8

dotnet-xamarinformsdotnet-android
· 7
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If your using any google packages , then don't use r8 while creating apk. r8 not handling google libraries at all. It's skipping all imp classes while linking.

1 Vote 1 ·

Thanks for the answer.

How can I solve this problem?

0 Votes 0 ·

Do you have any logs of what the errors are? If you are having build issues it could be with your linker settings, would just change it to "SDK Assemblies" and not ALL

0 Votes 0 ·

Thanks for the answer.

now I can generate apk, but it doesn't install.

My configurations:

41094-imagem.png


0 Votes 0 ·
imagem.png (90.1 KiB)
JamesMontemagno avatar image JamesMontemagno AlegriaKilandaPedro-2869 ·

May I recommend the default settings. Turn off LLVM Optimizating and only use startup tracing. Also use "SDK assemblies Only"
41059-image.png




After this what error are you getting if you do get any.

0 Votes 0 ·
image.png (43.0 KiB)
Show more comments

0 Answers