示例消息
Use of AppDomain.CreateDomain() detected in assembly: {assembly}. .NET 6 will only support a single AppDomain, so this API will no longer be available in .NET for Android once .NET 6 is released.
注意:此错误在适用于 Android 的 .NET 中对应于 XA2000。
解决方案
将代码从 AppDomain.CreateDomain() 迁移到其他 API,例如 AssemblyLoadContext。