IntelliJ 2017 Google Play Service is not working

Answered

I am working in an Android project where I need to use Google Maps. I have tried to set up Google Play Service following the instructions I have found in several postings (basically linking the library) but it does not work. The first issue I have found is that the path to the place where Google Plays Service should be (in the Android SDK folder ) has changed but I do not find the new one. Any clue about this

0
4 comments

Is your project Gradle based? Can you share the project configuration?

0
Avatar
Permanently deleted user

I have created the project from scratch using the IntelliJ Android wizard. The project works properly but it is facing problems with the libraries for Google Maps etcThe main issue I have found is to locate the Google Play Service library. I have tried to solve the problem with the solution provided here  but it seems that the latest version of Android SDK is placing the folder google-play-services_lib in a different directory. I have double check and I have installed again Android Studio but the result is similar.

0

If the project was created using a wizard and you have selected Android as the first step, IntelliJ IDEA creates Gradle based Android project.

For Gradle based projects dependencies are configured via build.gradle file. The document you've linked is obsolete.

You should follow this guide: https://developers.google.com/android/guides/setup and add the appropriate dependency entry into app/build.gradle file, then refresh the Gradle project.

0
Avatar
Permanently deleted user

I have solved the problem following your comments. Thanks for your help

0

Please sign in to leave a comment.