I get this error in the end. Please help.
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83
Got the same issue. I “Fixed it” by building in a pro version.
Please let me know if you solve this !
I had the same error and I avoided it generating all lightmaps again (of each scene). I don’t know if this is the certain solution, but you can try it and see.
I additionally check details on the issue and it was due to one of the “aar” files in android. A contsnat declared in aar file R.string.myconstant was not found. I updated the aar file and it fixed the issue.
Remove the same old files on your PLUGINS folder in your assets.
Here’s something that worked for me…
-Tested on Unity 2019.2.9f1
Notice that you should have the latest sdk + jdk8
2.Delete the “.gradle” folder in: "C > User > username > "
3.Connect to the internet with a stable connection
(because unity’s gonna download the required files itself during the build)
4.Now open up your project and just Build with the default build settings
Building the Gradle file will take some time for the first time and it may look freezed around 30Mins or more… but just let the unity do the job.
Download’s gonna be near 250MB