xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.87k forks source link

[Bug] XF 5.0.0.2612 : a build error for minimum Android API levels 19, 20 #15831

Closed makeman-p81 closed 10 months ago

makeman-p81 commented 11 months ago

Description

Can not build Android apps with minimum API levels 19 or 20 since update Xamarin Forms 5.0.0.2612.

Steps to Reproduce

  1. create a blank app
  2. set minimum android API level to 19 or 20
  3. upgrade Xamarin Forms to version 5.0.0.2612

Expected Behavior

Successful build

Actual Behavior

Failed build

Basic Information

Build Logs

https://gist.github.com/makeman-p81/1cd12698f83548fe8defc8de9241560c

MitchBomcanhao commented 11 months ago

did you read the error messages and do the recommended changes?

makeman-p81 commented 11 months ago

@MitchBomcanhao Does you mean a warning 'NU1605: Detected package downgrade' ? But it caused by iOS project, not by Android.

MitchBomcanhao commented 11 months ago

@makeman-p81 no, read line 110 of the log you posted, and enable multi dex in the android project

makeman-p81 commented 11 months ago

@MitchBomcanhao Thank, it has help me to build app, but before a default value of this option worked correctly for the current case. Now a release .apk has taken 15.6 Mb (+2 Mb) vs 13.6 Mb on the previous version of XF.

jfversluis commented 10 months ago

Looks like this one is solved