-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type AndroidX.Lifecycle.ClassesInfoCache$MethodReference is defined multiples times #749
Comments
update your Android dependencies (AndrodiX and GooglePlayServices-Firebase-MLKit) to the latest, please. |
Hitting the same issue (exact same log except the final line with mine being from Exoplayer.aar), have updated Android dependencies to the latest, still occurring. Previously was hitting the similar issue here: xamarin/GooglePlayServicesComponents#694, and adding PackageReference's to "Xamarin.AndroidX.Activity" and "Xamarin.AndroidX.Activity.Ktx" resolved it. However now tripping up on AndroidX.Lifecycle.ClassesInfoCache$MethodReference @Jorgemagic Did you find a workaround? Thanks. |
Thanks for the feedback. Can you post your |
Which Exoplayer? This one: Xam.Plugins.Android.ExoPlayer? No wonders. It does not use latest packages. |
I am having a similar error, could anyone help me
|
Thanks for the feedback, but I'll need more info. Can you show me your |
@alooosh ... and update your packages afterwards |
|
Hi @moljac, we manage our own ExoPlayer bindings, however I looked into it and there was a difference in packages. Xamarin.AndroidX.Annotation and Xamarin.AndroidX.Media were not using latest (but were still on .net supported versions). Updating to latest versions in the ExoPlayer bindings resolved the issue. |
@trussellswitch Thanks for the feedback. |
All I need is PackageReferences:
from brief look at it you have 2 huge potential problems:
<ItemGroup>
<PackageReference Include="MediatR">
<Version>12.1.1</Version>
</PackageReference>
<PackageReference Include="PhotoBrowser.Forms">
<Version>0.1.4</Version>
</PackageReference>
<PackageReference Include="Plugin.Toast">
<Version>2.2.0</Version>
</PackageReference>
<PackageReference Include="Sharpnado.Forms.HorizontalListView">
<Version>1.8.2</Version>
</PackageReference>
<PackageReference Include="Sharpnado.Presentation.Forms">
<Version>1.7.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Activity">
<Version>1.7.2.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.AppCompat.Resources">
<Version>1.1.0.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Browser">
<Version>1.4.0.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Fragment">
<Version>1.6.0.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4">
<Version>1.0.0.19</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials">
<Version>1.7.7</Version>
</PackageReference>
<PackageReference Include="Xamarin.Google.Android.Material">
<Version>1.5.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.Core.UI">
<Version>28.0.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.Fragment">
<Version>28.0.0.3</Version>
</PackageReference>
<PackageReference Include="Rg.Plugins.Popup">
<Version>2.1.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.Base">
<Version>118.2.0.1</Version>
</PackageReference>
<PackageReference Include="RestSharp">
<Version>110.2.1-alpha.0.10</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.Messaging">
<Version>123.1.2.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.AppCompat">
<Version>1.6.1.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat">
<Version>28.0.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.AppCompat.AppCompatResources">
<Version>1.6.1.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>5.0.0.2515</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Core">
<Version>1.9.0.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.CustomView">
<Version>1.1.0.18</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Preference">
<Version>1.2.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.RecyclerView">
<Version>1.3.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Navigation.UI">
<Version>2.3.5.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.Ads">
<Version>121.2.0</Version>
</PackageReference>
</ItemGroup> |
Yes thank you after I updated all the packages I can build the android but I lost the Keystore |
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
VS2022 17.6 MAUI .Net7.0
Description
I try to integrate the Evergine engine as a custom view on MAUI, Windows, Mac and iOS works but the Android profile throws the following error "AndroidX.Lifecycle.ClassesInfoCache$MethodReference is defined multiples times",
Steps to Reproduce
Download and compile the following project
https://github.com/Jorgemagic/EvergineIntegration/tree/feature/Android
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: