I\'m trying to add google play services to my libGDX project in IntelliJ Idea. I\'ve followed the setup guide here: https://developers.google.com/android/guides/setup
<
I tried solving this problem for hours after I haven't used Android Studio some time and wasn't aware of the updates.
It is important that google()
is the first item that stands in repositories
like this:
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
Somehow google()
was the second item after jcenter()
, so everything was messed up and didn't work. Maybe this helps someone.