An error is reported when Unity compiles and runs the Android app /Users/bokken/buildslave/.../GUIUtility.cs:189

The compilation error results are as follows

Build completed with a result of ‘Failed’ in 8 seconds (7835 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

1. Background

The wrong unity version reported today when compiling and running the Android app
: 2021.3.16

Two, the solution

The specific reason is currently unknown

  1. File -> build Settings -> build

    insert image description here

After this step, the apk file will be successfully generated;
so guess that the error is reported in the running phase;
if you use compile and run, an error will occur, and the apk file will not be generated.

  1. Now that you have the apk file, it is easy to handle, and you can use various methods to install it.

I useadb install

Three, finally

It is possible to know the reason and other solutions, the comment area points out

Guess you like

Origin blog.csdn.net/downanddusk/article/details/128521878