Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find any version that matches com.google.android.gms:play-services-plus:+

Trying to integrate login with google plus in my ionic project using the cordova-plugin-googleplus plugin by EddyVerbruggen. Without the plugin installed the project builds fine but once I install the plugin building fails and I get this error:

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

    Could not resolve all dependencies for configuration ':_debugCompile'. Could not find any version that matches com.google.android.gms:play-services-plus:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-plus/ Required by: :android:unspecified Could not find any version that matches com.google.android.gms:play-services-identity:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-identity/ Required by: :android:unspecified

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Any ideas what could be causing the problem?

like image 595
Ingadi Avatar asked Jan 06 '23 20:01

Ingadi


1 Answers

I finally figured out how to fix this. You need to have the following installed in your Android SDK manager (Under the 'Extras' folder):

  • Android Support Repository
  • Android Support Library
  • Google Play services
  • Google Repository

I installed them and it worked for me.

enter image description here

josschne's comment on this link https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/77 tipped me in the direction of checking to see whether I had them installed, In my case I did not.

like image 84
Ingadi Avatar answered Jan 30 '23 18:01

Ingadi