Android 应用使用的功能将在将来的 .NET 版本中消失。
示例消息
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.
注意:此错误在 .NET 6 及更高版本中映射到 IL6200。
Support for the 'MONO_GC_PARAMS=bridge-implementation=old' value will be removed in .NET 7.
解决方案
在功能被删除之前进行迁移。
将代码从 AppDomain.CreateDomain() 迁移到其他 API,例如 AssemblyLoadContext。
将代码从MONO_GC_PARAMS=bridge-implementation=old转换出去。