android-libraries: Xamain.AndroidX.SavedState 1.3.0 does not contain classes
Android framework version
net9.0-android
Affected platform version
9.0.301
Description
Since version 1.3.0 of Xamarin.AndroidX.SavedState it does not contain any classes or interfaces in the package.
Looking with NuGet package explorer for version 1.3.0:
The previous version 1.2.1.17 looks like this:
Steps to Reproduce
Use an AndroidX package that depends on this one. I.e. Xamarin.AndroidX.Navigation.Common or some of the Lifecycle packages. Then using types such as View.IOnClickObserver will throw an error like:
error CS7069: Reference to type 'ISavedStateRegistryOwner' claims it is defined in 'Xamarin.AndroidX.SavedState', but it could not be found
Did you find any workaround?
Staying on a previous version
Relevant log output
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
We released another set of updates, but we don’t have the next version of androidx.activity, because it is still preview:
If 1.11.0 was stable, it appears that if we bound it, things would “just work”.
If a lot of people are hitting this, we can consider adding C# type forwarders to fix it.
Upvote this comment, thanks!
The issue is the assembly reference here:
There is an update to androidx activity anyway, so we can update
Xamarin.AndroidX.Activityto fix this.Fixed by: 07d12d10eda89f6c587ad73a0807b032ec386739
The new package is released:
Can anyone confirm, if just installing this package solves the issue?
I am also trying this here: