1
votes

I am having trouble with google play services lib. I am following the tutorial: https://developers.google.com/mobile-ads-sdk/docs/

My trouble is after importing the google play services lib I right click the application I am working on, go to properties, click on android and there is no google play services lib to select. How are you suppose to make eclipse recognize the imported android project (which in my case is google-play-services_lib) as a library? I am unsure of what I did wrong here. Thanks for the comments and help!

2
check if google play services properties is checked as isLibrary. if not check it then it will show in properties under library - Illegal Argument

2 Answers

0
votes

Right click the google play services lib, click properties, click Android, and make sure the box next to "Is Library" is checked.

If that is checked, then remove the google play services lib, and then re-import, and make sure to check the box "copy into workspace". And then repeat the above steps.

0
votes

First you ensure that you donwload it from the SDK Manager correctly. If yes then go to the folder "\sdk\extras\google\google_play_services\libproject\google-play-services_lib

Then Import it into your current app workspace from File >> Import, select Android > Existing Android Code into Workspace. Then goto your project properties, click on android,and add your Google play services then click ok.

If you want more info see this page http://hmkcode.com/adding-google-play-services-library-to-your-android-app/