Forum General
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Android Build Failure After Upgrade Xamarin Forms From 4.7 To 4.8

CSSStevieCSSStevie Member

Hello,

This morning I updated an existing app to use Xamarin.Forms 4.8.1269,, after the update the app would no longer build for Android. The following error appears : "Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Android.IncludeAndroidResourcesFromAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author"

After googling about the issue, I have updated the Android Project to the target the latest api which api 30. I have also updated all nuget packages to the latest version, this also include the latest version of visual studio.

I am not sure how to resolve this issue and if any has seen or fixed this issue any assistance would be greatly appreciated.

System Build

Microsoft Visual Studio Community 2019
Version 16.7.2
VisualStudio.16.Release/16.7.2+30413.136
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Community

Xamarin 16.7.000.440 ([email protected])
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 16.7.0.495 (remotes/origin/[email protected])
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 16.7.85 (1bcbbdf)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 11.0.2.0 (d16-7/025fde9)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 83105ba
Java.Interop: xamarin/java.interop/[email protected]
ProGuard: Guardsquare/proguard/[email protected]
SQLite: xamarin/sqlite/[email protected]
Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

Xamarin.iOS and Xamarin.Mac SDK 13.20.2.2 (817b6f72a)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Answers

  • CSSStevieCSSStevie Member

    This morning I have rolled back the Xamarin.Forms package to the previous version 4.7.0.1260 and the issue is now gone.

Sign In or Register to comment.