I am trying to implement the Google Play Game Services
leaderboard found here. I imported the library BaseGameUtils
, made it a library and added it to my main project. But there is a little red X and a red ! on my projects (see below picture).
Also, it says that the C:\Users\lyonsmg\Downloads\android-samples-master\BaseGameUtils\bin
is missing in my Android Dependencies for my main project, BibleTriviaLite
(see below picture).
What am I doing wrong? I was able to import the google-play-services_lib
correctly but not the BaseGameUtils
. How can I fix this?
Check the project properties for BaseGameUtils. Go to Project Properties | Android and check that it's targeting a valid Android target (there should be exactly one target checked) that's API level >= 8.
Check that BaseGameUtils is referencing google-play-services_lib as a dependency. To do this, go to Project Properties | Android and look at the References section. If there is nothing there, add a reference to google-play-services_lib.
Check that both google-play-services_lib and BaseGameUtils are set up as library projects. Go to Project Settings | Android and verify that both have the "Is Library" checkbox checked.
Clean and rebuild everything.
Hope this helps!