This message was deleted.
# community-support
s
This message was deleted.
v
Which part of "because no repositories are defined." is unclear? You probably depend on that dependency the legacy way using a
buildscript { ... }
block, withouth also defining the
google()
repository in there.
Btw. as you try to use an ancient AGP version with the most recent Gradle version, chances are high that you run into more problems. 🙂
k
In my mainTemplate.gradle file (which is attached below) , google() can be found in the buildscript section. I am also using com.android.tools.buildG3.4.3 . Could that be the problem? If it is how do I upgrade my AGP
v
I have no idea what a
mainTemplate.gradle
file is, or how Unity uses Gradle and this template. Maybe it mangles something there. You should probably ask in some Unity community. 🙂
k
Alright 👍 Thanks @Vampire for your help.
👌 1
Hi @Vampire, Thanks a lot for your help, I was able to resolve the error. I found out that I was using an AGP version that does not work with my gradle version. To fix it I changed the AGP version. Danke 🙏
👌 1