-3

I am trying to use Fused Location Manager in Android. Android said to change gradle file in the project. I changed the file, but it shows the error below. Please help me

error screen

saurabh
  • 6,687
  • 7
  • 42
  • 63

1 Answers1

0

In dependencies use, compile 'com.google.android.gms:play-services:9.0.0'

or

apply plugin: 'com.google.gms.google-services' at the bottom of the dependencies.

Then try to clean and rerun.

  • I tried both, but error says Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0. – capstone Nov 23 '16 at 04:52
  • I think gradle crashes because I am also using GoogleLoginAPI, is there any ways to use both function? fused location and google login api – capstone Nov 23 '16 at 06:34