userssss1
userssss1

Reputation: 31

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

I have a problem about google firebase, failed to resolve

implementation 'com.google.firebase:firebase-database:16.0.1:15.0.0'

how can I solve this? I just follow instruction.

Upvotes: 0

Views: 390

Answers (3)

simon
simon

Reputation: 133

remove the last part of the version number for the dependency i.e you should have this instead implementation 'com.google.firebase:firebase-database:16.0.1

Upvotes: 1

Masum Billah
Masum Billah

Reputation: 1103

This is add your manifests

       <service
            android:name=".notification.service.MyFirebaseInstanceIDService"
            android:exported="false"
            android:stopWithTask="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

This is add your gradle

implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.1'

Upvotes: 1

Alex
Alex

Reputation: 9352

You set 2 different versions in same implementation. It should be

implementation 'com.google.firebase:firebase-database:16.0.1'

or

implementation 'com.google.firebase:firebase-database:15.0.0'

but not both.

Upvotes: 1

Related Questions