简体   繁体   中英

Android adding Google Play Services SDK

I have am building a game using LibGDX framwork, I am trying to add AdMod to my game. I have followed the instructions on this link.

https://developer.android.com/google/play-services/setup.html

Even though it is not giving me any errors, when I try to import any google play services class eg com.google.android.gms.ads.AdView it does not recognise it.

Also one thing that i noticed, When I added google-play-services_lib it showed a green tick on it in my project property as shown below.

在此处输入图片说明

But on closing the property window and checking it again the green tick changed into red cross.

在此处输入图片说明

Repeating the task gave same results

Have you imported the ...-lib as a project? Try again and while doing this try clicking the option that adds a copy of the files to your workspace, and then accesses them from there. Add as library again at this point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM