Skip to content

Java type generated by more than one managed type #2

Description

@KlaudiaBronowicka

Hi, I tried to use this nuget in a project using Xamarin.Forms 5.0.0.2401, but installing it results in the following errors on build:

The Java type `androidx.appcompat.widget.ResourceManagerInternal$ResourceManagerHooks` is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted.

`androidx.appcompat.widget.ResourceManagerInternal$ResourceManagerHooks` generated by: AndroidX.AppCompat.Widget.ResourceManagerInternal+IResourceManagerHooks, Xamarin.AndroidX.AppCompat.Resources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

`androidx.appcompat.widget.ResourceManagerInternal$ResourceManagerHooks` generated by: AndroidX.AppCompat.Widget.ResourceManagerInternal+IResourceManagerHooks, Xamarin.AndroidX.AppCompat.AppCompatResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

It works fine when using release mode with Linker settings set to 'SDK only', but changing debug linker config results in VS hang on deploy, so it's not a viable solution.

Is there any workaround/fix or additional setup required for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions