NidhinRaj
NidhinRaj

Reputation: 385

google-play-services_lib Not working Properly

I want to use google map in my application

I Have Added google-play-services_lib as project and set as library , And then i have added google-play-services_lib to my project

if i check again it marked as red icon

enter image description here

Can you please help to resolve this

Upvotes: 0

Views: 174

Answers (2)

Spring Breaker
Spring Breaker

Reputation: 8251

I am assuming you haven't imported the library in correct way.In order to work, the library project and your main project need to be in the same workspace. While importing google-play-services to eclipse make sure you have checked Copy Projects into workspace option as shown in the below image,

enter image description here

Else you can also copy paste the google-play-services library project into your workspace and then import it from there.

Upvotes: 1

DDsix
DDsix

Reputation: 1984

You no longer need to add the Google Play Service library in your project. Adding

compile 'com.google.android.gms:play-services:4.3.23'

under dependencies does the job.

Edit: If you don't know how to add dependencies in Eclipse, take a look here. In Android Studio (or any other Gradle based IDE), just open build.gradle and add the above line between dependencies brackets.

Upvotes: 0

Related Questions