Giter Site home page Giter Site logo

Comments (16)

czmirek avatar czmirek commented on June 2, 2024 4

Fixed this error in my project by directly installing the following NuGets:

<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.3.0.1" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.3.0.1" />

from androidx.

uSafi avatar uSafi commented on June 2, 2024 1

I have the same problem, and those packages you guys mentioned are as of now not compatible with .net 8 LTS, and I don't have a workaround yet.

<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.3.0.1" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.3.0.1" />

from androidx.

gautambjain avatar gautambjain commented on June 2, 2024 1

@uSafi - Please install those packages (latest version) explicitly into your project. It should work. It just worked for me. I am using .Net 8.

The packages are - Xamarin.AndroidX.Collection and Xamarin.AndroidX.Collection.Ktx

from androidx.

andersonvieiragomeslopes avatar andersonvieiragomeslopes commented on June 2, 2024

Hi @sk1llsh0t

I have the same problem, did you find any workaround?

I have target net 8.0-android34 and it doesn't work either.

from androidx.

sk1llsh0t avatar sk1llsh0t commented on June 2, 2024

Hi @sk1llsh0t

I have the same problem, did you find any workaround?

I have target net 8.0-android34 and it doesn't work either

No workaround yet. Waiting for one of the maintainers to take a look and provide a fix.

from androidx.

andersonvieiragomeslopes avatar andersonvieiragomeslopes commented on June 2, 2024

Hi @sk1llsh0t
I have the same problem, did you find any workaround?
I have target net 8.0-android34 and it doesn't work either

No workaround yet. Waiting for one of the maintainers to take a look and provide a fix.

This problem stopped my project @jonathanpeppers

from androidx.

moljac avatar moljac commented on June 2, 2024

Thanks for the feedback, but read #764 first.

Possible duplicate.

@andersonvieiragomeslopes Why mentioning JonathanPeppers??

Without list of PackageReferences in this case not much help can be provided.

from androidx.

moljac avatar moljac commented on June 2, 2024

Fixed this error in my project by directly installing the following NuGets:

<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.3.0.1" />
<PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.3.0.1" />

Yes. Usually explicitly overriding transitive dependencies helps. The problem is to determine which transitive dependencies.

Anyhow @czmirek thanks a lot for feedback

from androidx.

moljac avatar moljac commented on June 2, 2024

Related:

dotnet/maui#18118

from androidx.

sk1llsh0t avatar sk1llsh0t commented on June 2, 2024

Without list of PackageReferences in this case not much help can be provided.

Here you go (minus the reference to the androidx package):

<ItemGroup> <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0-rc.2.23479.6" /> </ItemGroup>

from androidx.

moljac avatar moljac commented on June 2, 2024

@sk1llsh0t

Thanks

(minus the reference to the androidx package):

I need those too. Those are the culprit of the problem. Try removing those and you'll see the error is gone.

from androidx.

sk1llsh0t avatar sk1llsh0t commented on June 2, 2024

Removing those packages bring other runtime and compile time errors.

The only thing that worked for me was following @czmirek comment above. I'll stick with this until we have a long term solution.

Thanks!

from androidx.

moljac avatar moljac commented on June 2, 2024

Workaround found.
Closing this issue

from androidx.

moljac avatar moljac commented on June 2, 2024

I have the same problem, and those packages you guys mentioned are as of now not compatible with .net 8 RTL,

It has nothing to do with .NET 8, but package dependencies (NuGet - Maven mapping).

and I don't have a workaround yet.

In order to find workaround list your <PackageReference>s here, so I can analyze, please.

from androidx.

uSafi avatar uSafi commented on June 2, 2024

I have the same problem, and those packages you guys mentioned are as of now not compatible with .net 8 RTL,

It has nothing to do with .NET 8, but package dependencies (NuGet - Maven mapping).

and I don't have a workaround yet.

In order to find workaround list your <PackageReference>s here, so I can analyze, please.

Thanks for replying. here's the list of Package References in my project, and a screenshot of the error.

<ItemGroup>
  <PackageReference Include="AsyncAwaitBestPractices" Version="7.0.0" />
  <PackageReference Include="CommunityToolkit.Maui" Version="7.0.0" />
  <PackageReference Include="CommunityToolkit.MVVM" Version="8.2.2" />
  <PackageReference Include="FirebaseDatabase.net" Version="4.2.0" />
  <PackageReference Include="FirebaseStorage.net" Version="1.0.3" />
  <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.4.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
  <PackageReference Include="Plugin.LocalNotification" Version="10.1.8" />
  <PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
  <PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.7" />
  <PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.7" />
  <PackageReference Include="Syncfusion.Maui.Core" Version="23.2.5" />
</ItemGroup>


<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
	<PackageReference Include="Xamarin.Firebase.Auth">
		<Version>122.2.0</Version>
	</PackageReference>
</ItemGroup>

Screenshot 2023-11-27 150244

from androidx.

uSafi avatar uSafi commented on June 2, 2024

@uSafi - Please install those packages (latest version) explicitly into your project. It should work. It just worked for me. I am using .Net 8.

The packages are Xamarin.AndroidX.Collection and Xamarin.AndroidX.Collection.Ktx

Thank you, but back then, in my case, the package Xamarin.AndroidX.Fragment.Ktx worked.

from androidx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.