Comments (16)
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.
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.
@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.
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.
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.
Hi @sk1llsh0t
I have the same problem, did you find any workaround?
I have target net 8.0-android34 and it doesn't work eitherNo workaround yet. Waiting for one of the maintainers to take a look and provide a fix.
This problem stopped my project @jonathanpeppers
from androidx.
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.
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.
Related:
from androidx.
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.
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.
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.
Workaround found.
Closing this issue
from androidx.
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.
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>
from androidx.
@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)
- CustomTabsSession.RequestPostMessageChannel() throws exception HOT 1
- Xamarin.Androidx.Lifecycle.Common error while using Xamarin.Firebase.Messaging HOT 3
- Type-forwarding for binding libraries HOT 3
- Deprecate Xamarin.AndroidX.Legacy.Support.V4 HOT 2
- Bind "androidx.credentials" HOT 16
- [Bug] Lottie package throwing error while creating the release build in Android after switching to target framework 13 HOT 26
- Bind "androidx.health:health-services-client" HOT 29
- Releases - Where are they? HOT 1
- [Bug] `androidx.credentials` null Exception HOT 6
- com.android.tools.r8.ResourceException: com.android.tools.r8.internal.vc: I/O exception while reading HOT 3
- AndroidX.Credentials ICredentialManagerCallback wrong parameter types. HOT 2
- Can't get past `javac: error: package androidx.fragment.app does not exist` HOT 4
- CameraSelector.Builder().AddCameraFilter effectively unusable (cannot select specific camera lens) HOT 2
- Xamarin.AndroidX.Biometric not building starting at version 1.1.0.17 (.NET MAUI) HOT 3
- Issue with CustomTabsActivityManager and multiple activities HOT 3
- Bind "androidx/emoji2/emoji2-picker"
- Announcement: Xamarin.Android and .NET 6 no longer supported
- "Specified cast is not valid" when using SetOnItemSelectedListener of NavigationBarView HOT 6
- `Xamarin.Jetbrains.Annotations` namespace clash with `JetBrains.Annotations` causes CS0433 build failure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidx.