I’m trying to do an Android Build and I keep getting these Errors stopping me. I’ve looked high and low on the net but can’t find anything related specifically to this error.
Errors: Build Completed with result of Failed.
ArgumentNullException: Value cannot be null. Parameter Name: path1
Error Building Player: ArgumentNullException: Value cannot be null. Parameter Name: path1
My PC’s State:
Recently reset PC to factory settings
Reinstalled latest Unity.
Android Studio install and updated with all the elements, Google Play services, SDK, etc…
SDK Path set in External tools
Java jdk and jre installed
JAVA_HOME set in PC settings. and %JAVA_HOME added to path
Windows dev kit installed (This was one of the solutions I found but also did not help me)
Any help would be amazing! Hoping someone has also had this issue before.
Hello, @JeffDUnity3D ! This problem does not happen in a new project. I did notice a precursor error that I didn’t notice before when seeing the above error (since I had Clear on Build set):
And after hitting Build, it will cause the aforementioned error, likely as a result of not resolving the tools path:
In both the new empty Android project and our other project, the settings are configured to use the embedded JDK and Android SDK. And the environment variables are the same since its the same machine. So I’m not sure what might be differing from the two projects. Any ideas?
Happened to me when attempting to build an app bundle for Google Play. Switch back to apk build didn’t resolve it. Restarting Unity (which invoked the android dependency resolver) did fix it.