FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WorkerParameters not working after upgrading to 4.3.0.819712-pre2 · Issue #214 · xamarin/AndroidSupportComponents · GitHub

This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Repository navigation

This repository was archived by the owner on Jun 20, 2023. It is now read-only.

WorkerParameters not working after upgrading to 4.3.0.819712-pre2 #214

Description

Hi,

Why I am started getting this error:

The type 'WorkerParameters' exists in both 'Xamarin.Android.Arch.Work.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Xamarin.AndroidX.Work.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Everything was working before and I don't have the Xamarin.AndroidX.Work.Runtime in my installed Nuget packages.

This happend after installing the latest Xamarin Forms preview 4.3.0.819712-pre2

How can I resolve this please?

Thanks,
Jassim

Activity

  1. changed the title [-]WorkerParameters not working after upgrading to WorkerParameters[/-] [+]WorkerParameters not working after upgrading to 4.3.0.819712-pre2[/+] on Oct 1, 2019
  2. jrahma commented on Oct 1, 2019

    Author

    After adding Xamarin.AndroidX I am now getting:

    Program type already present: androidx.versionedparcelable.CustomVersionedParcelable

  3. Redth commented on Oct 2, 2019

    Member

    I believe this is due to the fact that Google decided to name the api's for work manager using the androidx package name in the Android Support library, so having both the old Xamarin.Android.Arch.Work.Runtime and Xamarin.AndroidX.Work.Runtime packages installed is unnecessary and in this case problematic.

    Can you try removing Xamarin.Android.Arch.Work.Runtime from your project and rebuilding?

    Since the .NET managed API should be the same in both packages, this should still allow you to 'migrate' without changing your managed .net code.

  4. jrahma commented on Oct 2, 2019

    Author

    I already tried that but did not work

    I had to downgrade by opting out the preview version

  5. Redth commented on Oct 2, 2019

    Member

    Jassim Al Rahma (@jrahma) do you have a repro sample you could share?

  6. jrahma commented on Oct 2, 2019

    Author

    nope, but I will try to make it and update you

  7. Redth commented on Oct 2, 2019

    Member

    Matthew Leibowitz (@mattleibow) i suspect we're going to need to update the mapping files for the migration package to account more appropriately for this scenario...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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


    Back | FazBrowse Home | New Git URL