Skip to content

Upgrading to 5.2+ results in Android compile time errors #102

@mrbelk

Description

@mrbelk

I have updated my android platform project to use AndroidX, targeting API29. If I reference 5.0.2 of this library, everything builds and runs without any problem. Once I update to any version > 5.2, I get a number of compile error pairs similar to this:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error XA0121: Assembly 'Xamarin.Android.Support.Animated.Vector.Drawable' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author. (XA0121) (goRoamPOD.Android)

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error XA0121: Assembly 'Xamarin.Android.Support.Animated.Vector.Drawable' is using '[assembly: Android.IncludeAndroidResourcesFromAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author. (XA0121) (goRoamPOD.Android)

There is clearly some dependency that is not right here. When I update your package to the latest version from 5.0.2, it pulls in a few other Xamarin.AndroidX packages.

What am I doing wrong?

Thanks,
Matthew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions