dotnet/android

AndroidMavenLibrary can't build

qcjxberin opened this issue · 6 comments

Android framework version

net9.0-android

Affected platform version

9.0.100-preview.6.24328.19

Description

Steps to Reproduce

dotnet build -p:AndroidSdkDirectory="D:\Android\android-sdk" -p:JavaSdkDirectory="D:\Program Files\Java\jdk-11"

Did you find any workaround?

No

Relevant log output

PS E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson> dotnet build -p:AndroidSdkDirectory="D:\Android\android-sdk" -p:JavaSdkDirectory="D:\Program Files\Java\jdk-11"
还原完成(0.2 秒)
你正在使用 .NET 的预览版。请参阅 https://aka.ms/dotnet-support-policy
  DH.Com.Alibaba.Fastjson 失败,出现 23 错误和 116 警告 (3.5 秒)
    obj\Debug\net9.0-android\api.xml(702,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.JSONArray.ComponentType”。(Java 类型:“com.alibaba.fastjson.JSONArray”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(702,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.JSONArray.ComponentType”。(Java 类型:“com.alibaba.fastjson.JSONArray”)
    obj\Debug\net9.0-android\api.xml(703,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.JSONArray.RelatedArray”。(Java 类型:“com.alibaba.fastjson.JSONArray”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(703,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.JSONArray.RelatedArray”。(Java 类型:“com.alibaba.fastjson.JSONArray”)
    obj\Debug\net9.0-android\api.xml(1649,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.TypeReference.Type”。(Java 类型:“com.alibaba.fastjson.TypeReference”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(1649,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.TypeReference.Type”。(Java 类型:“com.alibaba.fastjson.TypeReference”)
    obj\Debug\net9.0-android\api.xml(2202,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Config”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2202,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Config”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2203,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Context”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2203,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Context”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2204,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.FieldTypeResolver”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2204,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.FieldTypeResolver”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2205,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Input”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2205,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Input”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2207,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Lexer”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2207,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.Lexer”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2210,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.ResolveStatus”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2210,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.ResolveStatus”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2211,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.SymbolTable”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2211,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.DefaultJSONParser.SymbolTable”。(Java 类型:“com.alibaba.fastjson.parser.DefaultJSONParser”)
    obj\Debug\net9.0-android\api.xml(2258,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.Feature.Mask”。(Java 类型:“com.alibaba.fastjson.parser.Feature”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2258,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.Feature.Mask”。(Java 类型:“com.alibaba.fastjson.parser.Feature”)
    obj\Debug\net9.0-android\api.xml(2647,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Calendar”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2647,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Calendar”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    obj\Debug\net9.0-android\api.xml(2651,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Features”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2651,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Features”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    obj\Debug\net9.0-android\api.xml(2654,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Locale”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2654,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Locale”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    obj\Debug\net9.0-android\api.xml(2655,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.MatchStat”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2655,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.MatchStat”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    obj\Debug\net9.0-android\api.xml(2658,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Pos”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2658,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Pos”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    obj\Debug\net9.0-android\api.xml(2661,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.StringDefaultValue”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2661,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.StringDefaultValue”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    obj\Debug\net9.0-android\api.xml(2662,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.TimeZone”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2662,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.TimeZone”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase”)
    obj\Debug\net9.0-android\api.xml(2663,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Token”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2663,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.JSONLexerBase.Token”。(Java 类型:“com.alibaba.fastjson.parser.JSONLexerBase')
    obj\Debug\net9.0-android\api.xml(2975,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.ParserConfig.DefaultClassLoader”。(Java 类型:“com.alibaba.fastjson.parser.ParserConfig”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(2975,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Parser.ParserConfig.DefaultClassLoader”。(Java 类型:“com.alibaba.fastjson.parser.ParserConfig”)
    obj\Debug\net9.0-android\api.xml(4618,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.JSONSerializer.Config”。(Java 类型:“com.alibaba.fastjson.serializer.JSONSerializer')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4618,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.JSONSerializer.Config”。(Java 类型:“com.alibaba.fastjson.serializer.JSONSerializer')
    obj\Debug\net9.0-android\api.xml(4619,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.JSONSerializer.Context”。(Java 类型:“com.alibaba.fastjson.serializer.JSONSerializer”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4619,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.JSONSerializer.Context”。(Java 类型:“com.alibaba.fastjson.serializer.JSONSerializer”)
    obj\Debug\net9.0-android\api.xml(4861,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.FieldName”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4861,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.FieldName”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    obj\Debug\net9.0-android\api.xml(4862,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.Object”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4862,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.Object”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    obj\Debug\net9.0-android\api.xml(4863,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.Parent”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4863,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerialContext.Parent”。(Java 类型:“com.alibaba.fastjson.serializer.SerialContext”)
    obj\Debug\net9.0-android\api.xml(4943,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeConfig.GlobalInstance”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeConfig”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4943,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeConfig.GlobalInstance”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeConfig”)
    obj\Debug\net9.0-android\api.xml(4945,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeConfig.TypeKey”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeConfig”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4945,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeConfig.TypeKey”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeConfig”)
    obj\Debug\net9.0-android\api.xml(4988,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.AfterFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4988,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.AfterFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4989,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.BeforeFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4989,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.BeforeFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4990,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.ContextValueFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4990,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.ContextValueFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4991,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.LabelFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4991,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.LabelFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4992,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.NameFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4992,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.NameFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4993,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.PropertyFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4993,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.PropertyFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4994,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.PropertyPreFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4994,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.PropertyPreFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4995,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.ValueFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4995,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.ValueFilters”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable”)
    obj\Debug\net9.0-android\api.xml(4996,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.WriteDirect”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(4996,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeFilterable.WriteDirect”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeFilterable')
    obj\Debug\net9.0-android\api.xml(5030,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializerFeature.Mask”。(Java 类型:“com.alibaba.fastjson.serializer.SerializerFeature”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(5030,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializerFeature.Mask”。(Java 类型:“com.alibaba.fastjson.serializer.SerializerFeature”)
    obj\Debug\net9.0-android\api.xml(5273,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeWriter.MaxBufSize”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeWriter”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(5273,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Serializer.SerializeWriter.MaxBufSize”。(Java 类型:“com.alibaba.fastjson.serializer.SerializeWriter”)
    obj\Debug\net9.0-android\api.xml(5691,8): warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Util.ASMUtils.IsAndroid”。(Java 类型:“com.alibaba.fastjson.util.ASMUtils')
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(5691,8) warning BG8401: 由于方法名称重复,正在跳过“Com.Alibaba.Fastjson.Util.ASMUtils.IsAndroid”。(Java 类型:“com.alibaba.fastjson.util.ASMUtils')
    obj\Debug\net9.0-android\api.xml(5781,8): warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Util.FieldInfo.Format”。(Java 类型:“com.alibaba.fastjson.util.FieldInfo”)
    C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.99.0-preview.6.340\tools\Xamarin.Android.Bindings.Core.targets(110,5): obj\Debug\net9.0-android\api.xml(5781,8) warning BG8401: 由于字段或属性名称重复,正在跳过“Com.Alibaba.Fastjson.Util.FieldInfo.Format”。(Java 类型:“com.alibaba.fastjson.util.FieldInfo”)
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONCreator.cs(95,22): warning CS0114: “IJSONCreatorInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONCreator.cs(124,21): warning CS0114: “IJSONCreatorInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONCreator.cs(150,25): warning CS0114: “IJSONCreatorInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若 要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONPOJOBuilder.cs(155,22): warning CS0114: “IJSONPOJOBuilderInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONPOJOBuilder.cs(184,21): warning CS0114: “IJSONPOJOBuilderInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONPOJOBuilder.cs(210,25): warning CS0114: “IJSONPOJOBuilderInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONField.cs(485,22): warning CS0114: “IJSONFieldInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONField.cs(514,21): warning CS0114: “IJSONFieldInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。 若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONField.cs(540,25): warning CS0114: “IJSONFieldInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使 当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONType.cs(605,22): warning CS0114: “IJSONTypeInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)” 。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONType.cs(634,21): warning CS0114: “IJSONTypeInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若 要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Annotation.IJSONType.cs(660,25): warning CS0114: “IJSONTypeInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使当 前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.AntiCollisionHashMap.cs(147,51): warning CS0114: “AntiCollisionHashMap.Clone()”隐藏继承的成员“Object.Clone()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.AntiCollisionHashMap.cs(175,103): error CS0508: “AntiCollisionHashMap.EntrySet()”: 返回类型必须是“ICollection”才能与 重写成员“AbstractMap.EntrySet()”匹配
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.GenericArrayTypeImpl.cs(88,4): warning CS8766: “IType? GenericArrayTypeImpl.GenericComponentType.get”的返回类型中引用类型的为 Null 性与隐式实现的成员“IType IGenericArrayType.GenericComponentType.get”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.FieldInfo.cs(20,61): error CS0535: “FieldInfo”不实现接口成员“IComparable.CompareTo(Object)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Parser.JSONReaderScanner.cs(266,38): error CS0507: “JSONReaderScanner.CharArrayCompare(char[]?)”: 当重写“protected”继承成 员“JSONLexerBase.CharArrayCompare(char[]?)”时,无法更改访问修饰符
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Parser.JSONReaderScanner.cs(399,41): error CS0507: “JSONReaderScanner.Sub_chars(int, int)”: 当重写“protected”继承成员“JSONLexerBase.Sub_chars(int, int)”时,无法更改访问修饰符
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(249,51): warning CS0114: “JSONObject.Clone()”隐藏继承的成员“Object.Clone()”。若要使当前成员重写该实现,请添 加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0738: “JSONObject”不实现接口成员“IMap.EntrySet()”。“JSONObject.EntrySet()”无法实现“IMap.EntrySet()”,因为它没有“ICollection”的匹配返回类型。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0738: “JSONObject”不实现接口成员“IMap.KeySet()”。“JSONObject.KeySet()”无法实现“IMap.KeySet()”,因为它没有“ICollection”的匹配返回类型。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0535: “JSONObject”不实现接口成员“IMap.Put(Object?, Object?)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0535: “JSONObject”不实现接口成员“IMap.PutAll(IDictionary)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0738: “JSONObject”不实现接口成员“IMap.Values()”。“JSONObject.Values()”无法实现“IMap.Values()”,因为它没有“ICollection”的匹配返回类型。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonFilter.cs(155,22): warning CS0114: “IFastJsonFilterInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonFilter.cs(184,21): warning CS0114: “IFastJsonFilterInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonFilter.cs(210,25): warning CS0114: “IFastJsonFilterInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.ParameterizedTypeImpl.cs(154,60): warning CS8766: “IType[]? ParameterizedTypeImpl.GetActualTypeArguments()”的返回类型中引用类型的为 Null 性与隐式实现的成员“IType[] IParameterizedType.GetActualTypeArguments()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Util.ParameterizedTypeImpl.cs(126,4): warning CS8766: “IType? ParameterizedTypeImpl.RawType.get”的返回类型中引用类型的为 Null 性与隐式实现的成员“IType IParameterizedType.RawType.get”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Parser.JSONScanner.cs(212,38): error CS0507: “JSONScanner.CharArrayCompare(char[]?)”: 当重写“protected”继承成员“JSONLexerBase.CharArrayCompare(char[]?)”时,无法更改访问修饰符
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Parser.JSONScanner.cs(494,41): error CS0507: “JSONScanner.Sub_chars(int, int)”: 当重写“protected”继承成员“JSONLexerBase.Sub_chars(int, int)”时,无法更改访问修饰符
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonView.cs(155,22): warning CS0114: “IFastJsonViewInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonView.cs(184,21): warning CS0114: “IFastJsonViewInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IFastJsonView.cs(210,25): warning CS0114: “IFastJsonViewInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IResponseJSONP.cs(125,22): warning CS0114: “IResponseJSONPInvoker.Equals(Object?)”隐藏继承的成员“Object.Equals(Object?)”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IResponseJSONP.cs(154,21): warning CS0114: “IResponseJSONPInvoker.GetHashCode()”隐藏继承的成员“Object.GetHashCode()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Support.Spring.Annotation.IResponseJSONP.cs(180,25): warning CS0114: “IResponseJSONPInvoker.ToString()”隐藏继承的成员“Object.ToString()”。若要使当前成员重写该实现,请添加关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Serializer.DateCodec.cs(131,52): error CS0507: “DateCodec.Cast(DefaultJSONParser?, IType?, Object?, Object?)”: 当重写“protected”继承成员“AbstractDateDeserializer.Cast(DefaultJSONParser?, IType?, Object?, Object?)”时,无法更改访问修饰符
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Serializer.FieldSerializer.cs(20,67): error CS0535: “FieldSerializer”不实现接口成员“IComparable.CompareTo(Object)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(433,51): warning CS0114: “JSONArray.Clone()”隐藏继承的成员“Object.Clone()”。若要使当前成员重写该实现,请添加 关键字 override。否则,添加关键字 new。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“IList.AddAll(int, ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“IList.AddAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“IList.ContainsAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(1655,54): warning CS8766: “IIterator? JSONArray.Iterator()”的返回类型中引用类型的为 Null 性与隐式实现的成员“IIterator IList.Iterator()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(1716,58): warning CS8766: “IListIterator? JSONArray.ListIterator()”的返回类型中引用类型的为 Null 性与隐式实现的成员“IListIterator IList.ListIterator()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(1744,58): warning CS8766: “IListIterator? JSONArray.ListIterator(int index)”的返回类型中引用类型的为 Null 性 与隐式实现的成员“IListIterator IList.ListIterator(int index)”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“IList.RemoveAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“IList.RetainAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0738: “JSONArray”不实现接口成员“IList.SubList(int, int)”。“JSONArray.SubList(int, int)”无法 实现“IList.SubList(int, int)”,因为它没有“IList”的匹配返回类型。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(2000,53): warning CS8766: “Object[]? JSONArray.ToArray()”的返回类型中引用类型的为 Null 性与隐式实现的成员“Object[] IList.ToArray()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(2033,53): warning CS8766: “Object[]? JSONArray.ToArray(Object[]? a)”的返回类型中引用类型的为 Null 性与隐式实 现的成员“Object[] IList.ToArray(Object[] a)”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“ICollection.AddAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“ICollection.ContainsAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(1655,54): warning CS8766: “IIterator? JSONArray.Iterator()”的返回类型中引用类型的为 Null 性与隐式实现的成员“IIterator ICollection.Iterator()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“ICollection.RemoveAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS0535: “JSONArray”不实现接口成员“ICollection.RetainAll(ICollection)”
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(2000,53): warning CS8766: “Object[]? JSONArray.ToArray()”的返回类型中引用类型的为 Null 性与隐式实现的成员“Object[] ICollection.ToArray()”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(2033,53): warning CS8766: “Object[]? JSONArray.ToArray(Object[]? a)”的返回类型中引用类型的为 Null 性与隐式实 现的成员“Object[] ICollection.ToArray(Object[] a)”不匹配(可能是由于为 Null 性特性)。
    E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.JSONArray.cs(1655,54): warning CS8766: “IIterator? JSONArray.Iterator()”的返回类型中引用类型的为 Null 性与隐式实现的成员“IIterator IIterable.Iterator()”不匹配(可能是由于为 Null 性特性)。

在 4.0 秒内生成 失败,出现 23 错误和 116 警告

@qcjxberin: @(AndroidMavenLibrary) "just" adds support for automagically downloading Maven artifacts based on their ID, and validation support to ensure that the closure of all dependencies are present.

It doesn't change how bindings otherwise work, and the binding process is (unfortunately) not perfect; see also: https://github.com/dotnet/java-interop/wiki/Troubleshooting-Android-Bindings-Issues

Unfortunately I can't read Chinese, but fortunately you provided a repro. Oddly, I get a different set of warnings and errors than you do…

1:7>obj/Debug/net9.0-android/api.xml.class-parse : warning BG8605: The Java type 'java.awt.Color' could not be found (are you missing a Java reference jar/aar or a Java binding library NuGet?)

This is concerning, as (1) your warning and error list doesn't have this warning, and (2) Android doesn't provide the java.awt package, so this is not solvable.

You'll just need to ignore warnings like this.

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.Util.AntiCollisionHashMap.cs(175,103): error CS0508: 'AntiCollisionHashMap.EntrySet()': return type must be 'ICollection' to match overridden member 'AbstractMap.EntrySet()'

If you go to Com.Alibaba.Fastjson.Util.AntiCollisionHashMap.cs, you'll see this surrounding context:

		// Metadata.xml XPath method reference: path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
		[Register ("entrySet", "()Ljava/util/Set;", "GetEntrySetHandler")]
		public override unsafe global::System.Collections.Generic.ICollection<global::Java.Util.IMapEntry>? EntrySet ()

Copy the path=… value from the comment, and then add a new entry to Transforms\Metadata.xml which:

  1. Uses the <attr/> element.
  2. Copies the path=… value from above
  3. Uses name="managedReturn" to alter the return type.

Thus:

  <attr path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
      name="managedReturn">System.Collections.ICollection</attr>

(One error fixed, 13 to go!)

While this appears to work in the short term, eventually it fails:

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.Util.AntiCollisionHashMap.cs(180,12): error CS0266: Cannot implicitly convert type 'System.Collections.Generic.ICollection<Java.Util.IMapEntry>' to 'System.Collections.ICollection'. An explicit conversion exists (are you missing a cast?)

So the actual fix is to rename the method, and use a partial class to glue things together:

  <attr path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
      name="managedName">_EntrySet</attr>
  <attr path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
      name="managedOverride">virtual</attr>
using System.Collections;

namespace Com.Alibaba.Fastjson.Util {
    partial class AntiCollisionHashMap {
        public override ICollection EntrySet() => (ICollection) _EntrySet();
    }
}

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.JSONArray.cs(20,131): error CS1721: Class 'JSONArray' cannot have multiple base classes: 'JSON' and 'List'

The offending line:

public partial class JSONArray : global::Com.Alibaba.Fastjson.JSON, global::Java.IO.ISerializable, global::Java.Lang.ICloneable, global::Java.Util.List, global::Java.Util.IRandomAccess {

@jpobst: this feels like a generator bug. How is Java.Util.List getting there?

api.xml.fixed contains:

    <class abstract="false" deprecated="not deprecated" extends="com.alibaba.fastjson.JSON" extends-generic-aware="com.alibaba.fastjson.JSON" jni-extends="Lcom/alibaba/fastjson/JSON;" final="false" name="JSONArray" static="false" visibility="public" jni-signature="Lcom/alibaba/fastjson/JSONArray;">
      <implements name="java.io.Serializable" name-generic-aware="java.io.Serializable" jni-type="Ljava/io/Serializable;" />
      <implements name="java.lang.Cloneable" name-generic-aware="java.lang.Cloneable" jni-type="Ljava/lang/Cloneable;" />
      <implements name="java.util.List" name-generic-aware="java.util.List&lt;java.lang.Object&gt;" jni-type="Ljava/util/List&lt;Ljava/lang/Object;&gt;;" />
      <implements name="java.util.RandomAccess" name-generic-aware="java.util.RandomAccess" jni-type="Ljava/util/RandomAccess;" />

@qcjxberin: the quick fix is to just not implement that interface by updating Metadata.xml:

  <remove-node path="//class[@jni-signature='Lcom/alibaba/fastjson/JSONArray;']/implements[@name='java.util.List']" />
E:\Code\DH.Maui.FrameWork\src\DH.Com.Alibaba.Fastjson\obj\Debug\net9.0-android\generated\src\Com.Alibaba.Fastjson.Parser.JSONReaderScanner.cs(266,38): error CS0507: “JSONReaderScanner.CharArrayCompare(char[]?)”: 当重写“protected”继承成 员“JSONLexerBase.CharArrayCompare(char[]?)”时,无法更改访问修饰符

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.Parser.JSONReaderScanner.cs(266,38): error CS0507: 'JSONReaderScanner.CharArrayCompare(char[]?)': cannot change access modifiers when overriding 'protected' inherited member 'JSONLexerBase.CharArrayCompare(char[]?)'

The method visibility changed. Use Metadata.xml to change it back by setting visibility, using the comment near the error line for the //attr/@path value:

  <attr path="/api/package[@name='com.alibaba.fastjson.parser']/class[@name='JSONReaderScanner']/method[@name='charArrayCompare' and count(parameter)=1 and parameter[1][@type='char[]']]"
      name="visibility">protected</attr>

There are many similar errors, so if we play "fast and loose" we can fix many at once:

  <attr path="//method[@name='charArrayCompare' or @name='sub_chars'" name="visibility">protected</attr>

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.Serializer.FieldSerializer.cs(20,67): error CS0535: 'FieldSerializer' does not implement interface member 'IComparable.CompareTo(Object)'

There are two ways to fix this. Firstly, we can mimic what we did above and just not implement the Comparable interface:

  <remove-node path="/api/package[@name='com.alibaba.fastjson.serializer']/class[@name='FieldSerializer']/implements[@name='java.lang.Comparable']" />

…or you could make use of partial classes to provide the CompareTo(Java.Lang.Object) method, a'la

partial class FieldSerializer {
    public int CompareTo(Java.Lang.Object other) => CompareTo(other.JavaCast<FieldSerializer>());
}

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.JSONObject.cs(20,178): error CS0738: 'JSONObject' does not implement interface member 'IMap.EntrySet()'. 'JSONObject.EntrySet()' cannot implement 'IMap.EntrySet()' because it does not have the matching return type of 'ICollection'.

Again, skip the interface:

  <remove-node path="/api/package[@name='com.alibaba.fastjson']/class[@name='JSONObject']/implements[@name='java.util.Map']" />

obj/Debug/net9.0-android/generated/src/Com.Alibaba.Fastjson.Util.FieldInfo.cs(20,61): error CS0535: 'FieldInfo' does not implement interface member 'IComparable.CompareTo(Object)'

We're on a roll! Just skip the type:

  <remove-node path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='FieldInfo']/implements[@name='java.lang.Comparable']" />

No errors, lots of warnings:

Metadata.xml:

<metadata>
  <attr path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
      name="managedName">_EntrySet</attr>
  <attr path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='AntiCollisionHashMap']/method[@name='entrySet' and count(parameter)=0]"
      name="managedOverride">virtual</attr>
  <remove-node path="//class[@jni-signature='Lcom/alibaba/fastjson/JSONArray;']/implements[@name='java.util.List']" />
  <attr path="//method[@name='charArrayCompare' or @name='sub_chars' or @name='cast']" name="visibility">protected</attr>

  <remove-node path="/api/package[@name='com.alibaba.fastjson.serializer']/class[@name='FieldSerializer' or @name='FieldInfo']/implements[@name='java.lang.Comparable']" />
  <remove-node path="/api/package[@name='com.alibaba.fastjson']/class[@name='JSONObject']/implements[@name='java.util.Map']" />
  <remove-node path="/api/package[@name='com.alibaba.fastjson.util']/class[@name='FieldInfo']/implements[@name='java.lang.Comparable']" />
</metadata>

Additions.cs:

using System.Collections;

namespace Com.Alibaba.Fastjson.Util {
    partial class AntiCollisionHashMap {
        public override ICollection EntrySet() => (ICollection) _EntrySet();
    }
}

I asked:

How is Java.Util.List getting there?

Looks like it is due to "interface alternatives", and we're now looking into getting rid of them from Java Callable Wrappers; see:

Hi @qcjxberin. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@qcjxberin : are there any remaining questions or issues?

Hi @qcjxberin. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.