Failed to resolve: com.google.firebase:firebase-analytics

Hello guys,

iam very new to Kotlin and android app development in general and I am following a tutorial to create a login with firebase:

When trying to add firebase to my app and syncing my gradle files, Iam receiving the following error message:

This is what my gradle files look like:

I hope somebody is able to help me, thanks! :slight_smile:

You need to specify a version for dependencies,
according to https://mvnrepository.com/artifact/com.google.firebase/firebase-analytics/ 17.5.0 is the last, so the following should do:

implementation group: 'com.google.firebase', name: 'firebase-analytics', version: '17.5.0'

Also, please don’t post screenshots but editable text. Thanks :slight_smile:

1 Like

Sorry, I will keep that in mind for next time. It worked! Awesome, thanks a lot!!