Build failure, Unity Channel Xiaomi Support error appeared during build process. Has anyone seen this?

C:/Users/XPS/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.0/UnityChannel/XiaomiSupport/Editor/AppStoreOnboardApi.cs(7,19): error CS0234: The type or namespace name Connect does not exist in the namespace UnityEditor. Are you missing an assembly reference?

C:/Users/XPS/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.0/UnityChannel/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(15,40): error CS0246: The type or namespace name Editor could not be found. Are you missing an assembly reference?

C:/Users/XPS/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.0/UnityChannel/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(61,17): error CS0246: The type or namespace name SerializedProperty could not be found. Are you missing an assembly reference?

C:/Users/XPS/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.0/UnityChannel/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(88,30): error CS0115: `AppStoresSupport.AppStoreSettingsEditor.OnInspectorGUI()’ is marked as an override but no suitable method found to override

I got the first error like you (AppStoreOnBoardApi …namespace Connect does not exist … ), and I figured out why: I use Assembly Definition, I simply remove all assembly definition files in my project and everything work well again. Hope it helps.