문제

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.

enter image description here

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

enter image description here

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top