GUI rendering, Reload Assembly Issues in Unity Editor Extension

Hi,

While developing Unity Editor Extension and doing the build APK and Export APK through C# script, I am getting these error messages on Unity Console.


GUI Window tries to begin rendering while something else has not finished rendering! Either you have a recursive OnGUI rendering, or previous OnGUI did not clean up properly.

Reload Assembly called from managed code directly. This will cause a crash. You should never refresh assets in synchronous mode or enter playmode synchronously from script code.
UnityEditor.BuildPipeline:BuildPlayer(String, String, BuildTarget, BuildOptions)
AppSealing:ExportAPK() (at Assets/Editor/AppSealingNotWorking.cs:1228)
AppSealing:OnGUI() (at Assets/Editor/AppSealingNotWorking.cs:446)
UnityEditor.DockArea:OnGUI()

InvalidOperationException: Operation is not valid due to the current state of the object
System.Collections.Stack.Peek () (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections/Stack.cs:321)
UnityEngine.GUILayoutUtility.EndLayoutGroup () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GUILayoutUtility.cs:223)
UnityEditor.DockArea.EndOffsetArea () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:759)
UnityEditor.DockArea.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:683)

device.IsInsideFrame()


Could somebody please help to solve this?

Thanks & regards,
Anoop.

wish anyone had answered you, I share one unknown error called “device.IsInsideFrame()”