Search code examples
javaandroidgoogle-play-servicesbin

BaseGameUtils\bin missing when implementing Google Play Game Services leaderboard


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).

enter image description here

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).

enter image description here

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?


Solution

    1. 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.

    2. 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.

    3. 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.

    4. Clean and rebuild everything.

    Hope this helps!