(Sometimes 49 mistakes, then 19 again. Here’s the last one each time.)
UnityEditor. BuildPlayerWindow + BuildMethodException: 19 errors at UnityEditor. BuildPlayerWindow + DefaultBuildMethods. BuildPlayer (UnityEditor. BuildPlayerOptions options) in x00242 [0]
D:\unity\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
The at UnityEditor. BuildPlayerWindow. CallBuildMethods (System. Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in D:\unity\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
(There is also an error message that differs from other error messages,Gradle is a Unity packaging related tool)
CommandInvokationFailure: Gradle build failed.
Two. Solutions
The following four methods are all found by querying the data:
(None of the four approaches successfully solved my problem, but a similar BuildPlayerWindow+BuildMethodException error might occur if you don’t follow these Settings, where the number of errors might be different):
Method 1: File-buildsetting-PlayerSetting-Player-otherSettings-AndroidTVCompatibility disabled (Individual tried not to work)
Method 2: The release path cannot include Chinese, the path cannot be in the project, try to change the path, the release directory is placed in the same level directory as the project (individual tried, but it does not work)
Method 3: File-buildsettings-PlayerSetting-API Compatibility Level Choose Net 2.0(personal try does not work)
Step 4: Remove the plugins folder from the project’s “Assets” folder. I left a plugins/ vscode.cs in my project (I tried it personally but it didn’t work)
Tips for personal success:
Method 5: The name of the file-buildsetting-playersetting-player-productname is the same as the apK name after the file-buildsetting-build (my problem is that I try to change the following to send the package normally)
Three. I refer to the UNITY of the android package transmission gate configuration tutorial: https://blog.csdn.net/ChinarCSDN/article/details/79513403
There is also a portal for the error reporting solution of the great God, but I tried that my error reporting was not for this reason, so I failed to solve it.
The software version I used was different, because the time interval was long, so I used JDK-Java SE 8U231 version and SDK-3.5.2 version.
Read More:
- Error building Player because scripts had compiler errors when packaging ab package
- Error building player because scripts have compile errors in the editor
- [Fixed] Unity error CS1704: An assembly with the same name `UnityEngine.UI’ has already been imported
- AndroidStudio sync failed solution
- Unitypackage failed to install or the express solution could not be installed
- Unit package manager error
- Android studio reports an error when building AAR for unity
- The solution of “failed to load il2cpp” in Android package launched by unity
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- Install of Android studio_ FAILED_ OLDER_ Solutions to SDK
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Unity – error reporting encountered in APK package
- There is a problem with newtonsoft.json.dll after adding plastic SCM
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- ERROR Unsupported method AndroidProject.getVariantNames().
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- Solution to the expiration and unavailability of Android studio plug-in plugin
- About maven Pom.xml Personal solutions to reporting errors!!!
- Android studio error Error:Could not Determine java version from ‘9.0.4’
- Eclipse package explorer related problems and Solutions