androidandroid-studio

Could not find com.android.tools.build:gradle:8.0


Im completely new to android studio

I have these configurations :

In gradle-wrapper.properties file:

enter image description here

In build.gradle file:

enter image description here

But when I press Sync Project With Gradle files button . Bellow error occurred :

enter image description here


Solution

  • You try to use versions that don't exist (it seems, you mixed up versions for two plugins). The correct setup is:

    classpath "com.google.gms:google-services:4.4.0"
    classpath "com.android.tools.build:gradle:8.0.0"