android: Missing `androidx.window.[extensions|sidecar]` warnings
Android application type
Classic Xamarin.Android (MonoAndroid12.0, etc.)
Affected platform version
VS2022 17.2.0 Preview 1.0
Description
After upgrading all my nugets to the latest versions, the following are new warnings.
Severity Code Description Project File Line Suppression State
Warning Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll].
C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll
Project file item includes which caused reference "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll".
System.Numerics.Vectors
References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll
Project file item includes which caused reference "C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll".
C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll
C:\Users\gmcke\.nuget\packages\xamarin.googleplayservices.safetynet\117.0.1.3\lib\monoandroid90\Xamarin.GooglePlayServices.SafetyNet.dll OBDNowPros C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 2301
Warning Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-31\optional\androidx.window.sidecar.jar OBDNowPros C:\ProjectsVS2022Preview\Android12Pros\OBDNowPro\obj\Release\120\android\AndroidManifest.xml
Warning Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-31\optional\androidx.window.extensions.jar OBDNowPros C:\ProjectsVS2022Preview\Android12Pros\OBDNowPro\obj\Release\120\android\AndroidManifest.xml
Warning Missing class androidx.window.extensions.WindowExtensions (referenced from: androidx.window.extensions.embedding.ActivityEmbeddingComponent androidx.window.embedding.EmbeddingCompat$Companion.embeddingComponent() and 3 other contexts) OBDNowPros C:\ProjectsVS2022Preview\Android12Pros\OBDNowPro\R8
Warning XA4218: Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-31\optional\androidx.window.sidecar.jar 0
Warning MSB3073: The command ""C:\Program Files (x86)\Android\android-sdk\platform-tools\adb" -s 1A141FDF600D7C uninstall -k "com.glmsoftware.obdnowpros"" exited with code 1. 0
Warning XA4218: Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-31\optional\androidx.window.extensions.jar 0
Warning MSB3277: Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll].
C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll
Project file item includes which caused reference "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Numerics.Vectors.dll".
System.Numerics.Vectors
References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll
Project file item includes which caused reference "C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll".
C:\Users\gmcke\.nuget\packages\system.text.json\5.0.2\lib\netstandard2.0\System.Text.Json.dll
C:\Users\gmcke\.nuget\packages\xamarin.googleplayservices.safetynet\117.0.1.3\lib\monoandroid90\Xamarin.GooglePlayServices.SafetyNet.dll 0
Also attaching the MS Build log. Do you need anything else from me?
Could you please advise about the following, where it comes from etc? Missing class androidx.window.extensions.WindowExtensions (referenced from: androidx.window.extensions.embedding.ActivityEmbeddingComponent
Steps to Reproduce
N/A
Did you find any workaround?
The app deploys and runs just fine.
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 37 (23 by maintainers)
Commits related to this issue
- Disable irrelevant warning See https://learn.microsoft.com/en-us/xamarin/android/errors-and-warnings/xa4218 and https://github.com/xamarin/xamarin-android/issues/6809#issuecomment-1138617639. — committed to Susko3/osu-framework by Susko3 3 years ago
- Missing androidx.window.[extensions|sidecar] warnings Fixes #6809 We have an issues where if a library manifest contains the following element and the file dos NOT exist in `android-sdk\platforms\an... — committed to dellis1972/xamarin-android by dellis1972 2 years ago
- Missing androidx.window.[extensions|sidecar] warnings Fixes #6809 We have an issues where if a library manifest contains the following element and the file dos NOT exist in `android-sdk\platforms\an... — committed to dellis1972/xamarin-android by dellis1972 2 years ago
- Missing androidx.window.[extensions|sidecar] warnings Fixes #6809 We have an issues where if a library manifest contains the following element and the file dos NOT exist in `android-sdk\platforms\an... — committed to dellis1972/xamarin-android by dellis1972 2 years ago
- Missing androidx.window.[extensions|sidecar] warnings Fixes #6809 We have an issues where if a library manifest contains the following element and the file dos NOT exist in `android-sdk\platforms\an... — committed to dellis1972/xamarin-android by dellis1972 2 years ago
- Missing androidx.window.[extensions|sidecar] warnings (#9085) Fixes #6809 We have an issues where if a library manifest contains the following element and the file dos NOT exist in `android-sdk\... — committed to MaxMood96/xamarin-android by dellis1972 2 years ago
Not good practice to simply ‘ignore warnings’. Not how I like to write my programs. Thank you for your opinion.
Thanks for the feedback, but Visual Studio version has nothing to do with this issue.
See: https://github.com/xamarin/xamarin-android/issues/6809#issuecomment-1138617639
I cannot find these types in any of Google’s AndroidX packages:
androidx.window.extensions.WindowExtensionsandroidx.window.extensions.embedding.ActivityEmbeddingComponentBut the latest releases of AndroidX do now generally have a dependency on
AndroidX.Window(viaXamarin.AndroidX.SlidingPaneLayout).