1. Background
Unity project has the following capabilities
1. It can run directly on Android phones
2. You can build an APK file and then install it on the mobile phone to run
3. It can be packaged into an Android project and run the project using Android studio
There may be no problem that 1 and 2 can be implemented normally, but an error will be reported when implementing the third method
the first error:
unity UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
the second error:
UnityEditor.BuildPlayerWindow Error
2. Precautions
1. There is no problem with the configuration of gradle environment, because it can be compiled normally
2. The package directory also has no Chinese name
3. There is no problem with the packaging configuration
3. Solutions
Exporting Android Studio project needs to be consistent with our project name of unity
For example: File-BuildSettins-PlayerSetting-Player-ProductName name and File-BuildSettins-Build file directory name consistent can be solved
Read More:
- The solution of “failed to load il2cpp” in Android package launched by unity
- Notes on unity project_ Unity webplayer failed to update unity web player
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- Unity package APK exception failed to re package resources
- Idea Maven project uses package to package and report error (package does not exist)
- 【Unity 3D】Because you are not a member of this project this build will not access Unity services.
- How to turn your project into a jar package in idea
- fail to start Unity Package Manager
- How to Solve UE4 packaging Android error
- Unity package encountered an error report about gradle build failed
- Java project cannot import entity class package and service package, controller layer reports error, fix project setup is OK
- Android studio reports an error when building AAR for unity
- How to solve the error after Java importing project
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- android studio Error Gradle project sync failed. Please fix your project and try again
- Unity Android failed to extract resources needed byil2cpp
- Unity – error reporting encountered in APK package
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK