Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

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

Closed
kkohler2 opened this issue Jan 31, 2024 · 1 comment
Closed
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@kkohler2
Copy link

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

  • Version with issue: 5.0.0.2612 and 5.0.0.2622
  • Last known good version: 5.0.0.2578
  • Platform Target Frameworks:
    • Android: Android 10.0
  • Android Support Library / AndroidX Version:
  • NuGet Packages: None
  • Affected Devices: All Android

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

@kkohler2 kkohler2 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 31, 2024
@jfversluis
Copy link
Member

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.

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants