question

HermanWijoyo-1591 avatar image
0 Votes"
HermanWijoyo-1591 asked RobCaplan edited

Build Xamarin Android in Windows & Mac resulted different apk

Hi
Our previous developer setup build Xamarin in Mac which resulted 36mb apk and can be installed successfully into android device.
However, we would like to setup new build environment on Windows machine.
It can successfully build with no erro, but resulted only 26mb and failed every time installed that apk to android device.
all assemblies are the same, but only the size of most of assemblies smaller in size.
same Java version (Jre) and SDK same version (but instead of SDK for Xamarin Mac, this use SDK for Android Windows)

any help ?
Thanks

dotnet-xamarin
· 1
5 |1600 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.

Please open the Android option tab, If all the settings are same. Specially Dex compiler and Linker.

95978-image.png


1 Vote 1 ·
image.png (67.5 KiB)

1 Answer

HermanWijoyo-1591 avatar image
0 Votes"
HermanWijoyo-1591 answered

Sorry for late reply and thank you for the info.
I tried to match up the settings (between Mac , Windows and the screen shot above).
Result : I can build and install into Android device successfully, even the apk size still different between Mac vs Windows.
Now Windows apk size larger than Mac :)
but as long as can be installed into Android device, should be OK.
Thanks again.

5 |1600 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.