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:
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- Solve gradle project refresh failed
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- Some processing experiences of failed to notify build listener
- Add a warehouse in allprojects repositories and report an error
- AndroidStudio sync failed solution
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- unity fatal error in gc too many heap sections error
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Solve the error when installing apk after compiling Android Studio: Error while Installing APK
- Android Error | Failed to find target with hash string ”android-23′ in…
- android studio Error Gradle project sync failed. Please fix your project and try again
- Failed to find Build Tools revision 27.0.3
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Failed to find target with hash string ‘android-25’ in:D:\SDK
- Errorjava.lang.NullPointerException(no error message)