Skip to content

Fix build warnings in Mono.Android #11516

@simonrozsival

Description

@simonrozsival

Mono.Android build prouces a lot of warnings which add a lot of noise to the build logs:

src/Mono.Android/Android.Runtime/JNIEnvInit.cs(12,50): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(19,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(20,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(21,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(22,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(23,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(24,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(25,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(26,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(27,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(28,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(29,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(30,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(31,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(32,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(33,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(34,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(35,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(36,15): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/Android.App/IntentFilterAttribute.Partial.cs(37,18): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.ISortedSet.cs(356,54): warning CS8768: Nullability of reference types in return type doesn't match implemented member 'ISpliterator IIterable.Spliterator()' (possibly because of nullability attributes).
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(197,28): warning CS8600: Converting null literal or possible null value to non-nullable type.
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(246,7): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(502,7): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(548,54): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(298,30): warning CS8625: Cannot convert null literal to non-nullable reference type.
src/Mono.Android/Java.Interop/TypeManager.cs(241,33): warning CS8600: Converting null literal or possible null value to non-nullable type.
src/Mono.Android/Java.Interop/TypeManager.cs(242,39): warning CS8604: Possible null reference argument for parameter 'assemblyString' in 'Assembly Assembly.Load(string assemblyString)'.
src/Mono.Android/Java.Interop/TypeManager.cs(271,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/TypeManager.cs(274,17): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/TypeManager.cs(276,15): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/TypeManager.cs(278,15): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/TypeManager.cs(373,10): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/TypeManager.cs(309,39): warning CS8604: Possible null reference argument for parameter 'class_name' in 'Type? TypeManager.GetJavaToManagedTypeCore(string class_name)'.
src/Mono.Android/Android.Animation/ValueAnimator.cs(19,12): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Animation/ValueAnimator.cs(38,37): warning CS8602: Dereference of a possibly null reference.
src/Mono.Android/Android.Animation/ValueAnimator.cs(9,19): warning CS8618: Non-nullable field 'cb_setDuration_SetDuration_J_Landroid_animation_Animator_' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
src/Mono.Android/Android.Runtime/ResourceIdManager.cs(42,61): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Runtime/JNIEnvInit.cs(67,5): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Runtime/JNIEnv.cs(29,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(137,9): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(139,16): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(141,16): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(446,11): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Runtime/JNIEnv.cs(474,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(494,9): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(496,16): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(497,62): warning CS8604: Possible null reference argument for parameter 'fullName' in 'nint RuntimeNativeMethods.clr_typemap_managed_to_java(string fullName, nint mvid)'.
src/Mono.Android/Android.Runtime/JNIEnv.cs(694,30): warning CS8604: Possible null reference argument for parameter 't' in 'object? GetObject(nint e, Type t)'.
src/Mono.Android/Java.Interop/JavaObjectExtensions.cs(84,11): warning CS8600: Converting null literal or possible null value to non-nullable type.
src/Mono.Android/Java.Interop/JavaConvert.cs(84,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/JavaConvert.cs(151,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Java.Interop/JavaConvert.cs(265,24): warning CS8600: Converting null literal or possible null value to non-nullable type.
src/Mono.Android/Java.Interop/JavaConvert.cs(266,35): warning CS8604: Possible null reference argument for parameter 'key' in 'bool Dictionary<string, Type>.TryGetValue(string key, out Type value)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Lang.String.cs(1654,22): warning CS8604: Possible null reference argument for parameter 'anotherString' in 'int String.CompareTo(string anotherString)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(49,66): warning CS8604: Possible null reference argument for parameter 'remappingFunction' in 'Object? IMap.Compute(Object? key, IBiFunction remappingFunction)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(99,74): warning CS8604: Possible null reference argument for parameter 'mappingFunction' in 'Object? IMap.ComputeIfAbsent(Object? key, IFunction mappingFunction)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(149,75): warning CS8604: Possible null reference argument for parameter 'remappingFunction' in 'Object? IMap.ComputeIfPresent(Object? key, IBiFunction remappingFunction)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(198,21): warning CS8604: Possible null reference argument for parameter 'action' in 'void IMap.ForEach(IBiConsumer action)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(292,64): warning CS8604: Possible null reference argument for parameter 'value' in 'Object? IMap.Merge(Object? key, Object value, IBiFunction remappingFunction)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(292,71): warning CS8604: Possible null reference argument for parameter 'remappingFunction' in 'Object? IMap.Merge(Object? key, Object value, IBiFunction remappingFunction)'.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Java.Util.Concurrent.IConcurrentMap.cs(345,24): warning CS8604: Possible null reference argument for parameter 'function' in 'void IMap.ReplaceAll(IBiFunction function)'.
src/Mono.Android/Android.Runtime/JavaList.cs(275,5): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Runtime/JavaCollection.cs(154,5): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(129,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(143,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(157,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(170,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(347,34): warning CS8604: Possible null reference argument for parameter 'jniSimpleReference' in 'string? AndroidTypeManager.GetReplacementTypeCore(string jniSimpleReference)'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(186,9): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(199,9): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/IJavaObjectValueMarshaler.cs(52,35): warning CS8604: Possible null reference argument for parameter 'type' in 'ParameterExpression Expression.Variable(Type type, string? name)'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(215,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(254,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(275,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(295,8): warning CS0436: The type 'RuntimeFeature' in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs' conflicts with the imported type 'RuntimeFeature' in 'Mono.Android.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Using the type defined in '/Users/simonrozsival/Projects/dotnet/android/src/Mono.Android/Microsoft.Android.Runtime/RuntimeFeature.cs'.
src/Mono.Android/Android.Runtime/AndroidRuntime.cs(582,9): warning CS8321: The local function 'ShouldRegisterDynamically' is declared but never used
src/Mono.Android/Android.Animation/AnimatorSet.cs(19,12): warning CS8603: Possible null reference return.
src/Mono.Android/Android.Animation/AnimatorSet.cs(38,37): warning CS8602: Dereference of a possibly null reference.
src/Mono.Android/Android.Animation/AnimatorSet.cs(9,19): warning CS8618: Non-nullable field 'cb_setDuration_SetDuration_J_Landroid_animation_Animator_' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Media.Session.MediaSessionManager.cs(897,47): warning CS8625: Cannot convert null literal to non-nullable reference type.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Views.View.cs(2223,12): warning CS8603: Possible null reference return.
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Media.LoudnessCodecController.cs(129,12): warning CS8603: Possible null reference return.
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(332,18): warning CS0649: Field 'JavaMarshalValueManager.HandleContext.JniObjectReferenceControlBlock.handle' is never assigned to, and will always have its default value
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Media.MediaRouter2.cs(2245,18): warning CS0169: The field 'MediaRouter2.weak_implementor_SetOnGetControllerHintsListener' is never used
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(333,15): warning CS0649: Field 'JavaMarshalValueManager.HandleContext.JniObjectReferenceControlBlock.handle_type' is never assigned to, and will always have its default value 0
src/Mono.Android/Microsoft.Android.Runtime/JniRemappingLookup.cs(16,18): warning CS0649: Field 'JniRemappingLookup.JniRemappingReplacementMethod.target_name' is never assigned to, and will always have its default value null
src/Mono.Android/Microsoft.Android.Runtime/JniRemappingLookup.cs(17,18): warning CS0649: Field 'JniRemappingLookup.JniRemappingReplacementMethod.is_static' is never assigned to, and will always have its default value false
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Views.View.cs(30218,18): warning CS0169: The field 'View.weak_implementor_SetOnApplyWindowInsetsListener' is never used
src/Mono.Android/Microsoft.Android.Runtime/JniRemappingLookup.cs(15,18): warning CS0649: Field 'JniRemappingLookup.JniRemappingReplacementMethod.target_type' is never assigned to, and will always have its default value null
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(335,15): warning CS0649: Field 'JavaMarshalValueManager.HandleContext.JniObjectReferenceControlBlock.refs_added' is never assigned to, and will always have its default value 0
src/Mono.Android/obj/Debug/net11.0/android-37.0/mcw/Android.Media.RemoteControlClient.cs(1259,18): warning CS0169: The field 'RemoteControlClient.weak_implementor_SetOnGetPlaybackPositionListener' is never used
src/Mono.Android/Microsoft.Android.Runtime/JavaMarshalValueManager.cs(334,18): warning CS0649: Field 'JavaMarshalValueManager.HandleContext.JniObjectReferenceControlBlock.weak_handle' is never assigned to, and will always have its default value
src/Mono.Android/Android.Bluetooth/BluetoothDevice.cs(16,7): warning CA1422: This call site is reachable on: 'android' 26.0 and later. 'BluetoothDevice.ConnectGatt(Context?, bool, BluetoothGattCallback?, BluetoothTransports, BluetoothPhy, Handler?)' is obsoleted on: 'android' 37.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1422)
src/Mono.Android/Android.Bluetooth/BluetoothDevice.cs(11,7): warning CA1422: This call site is reachable on: 'android' 26.0 and later. 'BluetoothDevice.ConnectGatt(Context?, bool, BluetoothGattCallback?, BluetoothTransports, BluetoothPhy)' is obsoleted on: 'android' 37.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1422)
src/Mono.Android/PublicAPI/API-37/PublicAPI.Shipped.txt(66144,1): warning RS0025: The symbol 'const Android.Media.MediaCodecInfo.CodecProfileLevel.VP9Profile2HDR = Android.Media.MediaCodecProfileType.Apvprofile42210hdr10 -> Android.Media.MediaCodecProfileType' appears more than once in the public API files (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
src/Mono.Android/PublicAPI/API-37/PublicAPI.Shipped.txt(66147,1): warning RS0025: The symbol 'const Android.Media.MediaCodecInfo.CodecProfileLevel.VP9Profile3HDR = Android.Media.MediaCodecProfileType.Apvprofile42210hdr10plus -> Android.Media.MediaCodecProfileType' appears more than once in the public API files (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Metadata

Metadata

Labels

needs-triageIssues that need to be assigned.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions