xamarin / Xamarin.Forms

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

Unable to build Android custom renderers with latest Xamarin.Forms version #15857

Closed kkohler2 closed 5 months ago

kkohler2 commented 5 months ago

Description

Unable to upgrade to latest version of Xamarin.Forms due to compilation issues after upgrade with custom renderers.

Steps to Reproduce

  1. Take a working Xamarin.Forms project with a custom Entry renderer and upgrade the the latest version of Xamarin.Forms
  2. Attempt to build the project

Expected Behavior

Project will build and run as expected

Actual Behavior

Project does not build.

Basic Information

Only change I made to functional app was upgrading Xamarin.Forms version from 5.0.0.2578 to 5.0.0.2622

Environment

Visual Studio 17.8.3

Build Logs

image

Reproduction Link

Using the example repository for Xamarin.Forms custom renderers, upgrade to latest version of Xamarin.Forms and try to build. No other changes are necessary to reproduce. Last two versions of Xamarin.Forms have this breaking change. https://github.com/xamarin/xamarin-forms-samples/tree/main/CustomRenderers

Workaround

Use Xamarin.Forms 5.0.0.2578 or earlier

jfversluis commented 5 months ago

That is the version that bumped the target to Android 13. You will have to update the target framework version as outlined in the release notes. When doing that, the sample builds and works as expected.