so, I’m an experienced developer, but this thing makes me feel dumb!
I’m trying to publish a small multiplayer game on Google play store, but after installing and configuring the googlePlayServices package, I just can’t build the game!
i’ve tried a lot of different things, but in the end I just used a backup of the project to try fix it clean.
errors.zip (2.2 MB)
this is a winrar with all the prints and txt files with the errors in the console.
what is happening is that when I start building, it gives me two errors about gradle templates, then it continues until it get to the “building gradle” state, in wich it gives an build failure error:
"Build failure - Could not resolve all dependencies for configuration ‘:launcher:releaseRuntimeClasspath’. "
some people indicate to toggle the “custom gradle template” checkbox inside the BuildSettings/playerSettings/publishingSettings, but when i do that it opens a tab writen “android dependency resolver” that is stuck at 0% forever, and if i try to restart the project it just doesn’t open anymore, so i just used my backup again.
the thing is that my game launches in a month, and i’m trying for three days to fix this in any way possible, if anyone has anything to help me understand better what is my problem here, I would be soooooo grateful for that!!
test checked:
-tried to create a blank project, it build ok.
-tried to import the google play package into my blank project, it built ok.
-tried to retrace my steps on configuring the googlePlayServices package and sync it to the googlePlayConsole and cloud.
-tried to update my unity version to unity6.
-tried to nuke the project files and open the project to recreate the files.
-tried to add the resources it asks in the template files to download (it changes the error but it didn’t get far either)
-unchecked “read only” and allowed files modification for the unity sdk files.
-verifyed and confirmed paths for sdk, jdk, etc…
-tried to build in various android version (33, 34, 35)
-tried with and without the split and release options on BuildSettings/playerSettings/publishingSettings/minify
-yes i have a keystore and the password is right.
the only thing I really haven’t tried is to download the android studio to look for a fix because I’m not that experienced with the tool, but if you tell that it can fix, i’ll definetly try!