Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
582 views
in Technique[技术] by (71.8m points)

android - Unable to update the Firebase dependency(com.google.firebase)

I have Added Firebase to android app for push notification. I have updated build.gradle before i have used. Its working fine.

 compile 'com.google.firebase:firebase-messaging:9.2.0'

now i have updated to latest library but getting error.

 dependencies {
  //....
     compile 'com.google.firebase:firebase-core:10.0.1'       
  }

I had getting error at the time of Rebuild project

Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.google.firebase:firebase-core:10.0.1. Required by: DGApp:app:unspecified

Thank you in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have to update your Google Play Services and Google Repository from the Standalone SDK Manager.

Edit: As of the latest version of Android Studio the Standalone SDK Manager is removed. You must go to the SDK Tools tab.

First off, open Android Studio and click this icon at the top toolbar:

image

Then, when the dialog launches, click "Launch Standalone SDK Manager" at the bottom left of the dialog:

image

To make sure nothing other than what we want gets updated/installed, click "Deselect All":

image

When the Standalone SDK Manager window opens, look for "Extras" and collapse it. You should see "Google Play Services" and "Google Repository" and on the right you should see "Update Available: {something}". Select these to items and click "Install".

image

When they're done installing, the error will go away.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...