user3389197
user3389197

Reputation: 21

Game Services classes Cannot be resolved

I want to implement Google Play Game Services. But in GameHelper class the following classes could not be found at compilation.

import com.google.android.gms.games.Games;

import com.google.android.gms.appstate.AppStateManager;

import com.google.android.gms.games.multiplayer.Multiplayer;

import com.google.android.gms.plus.Plus;

Error:

The import com.google.android.gms.appstate.AppStateManager cannot be resolved GameHelper.java

I already read the google docs about Game Services and made all like that. In App Billings works great. So I have integrated the library project of Google Play Services in the right way.

Does anyone know something about this problem?

Upvotes: 2

Views: 2312

Answers (2)

user2914852
user2914852

Reputation: 3

In the git repository look for classes in: EndlessTunnel\BaseGameUtils\src\com\google\example\games\basegameutils\

This may not be the perfect solution, but the git repository contains 3 directories containing the GameHelper.java (and in the same folder, its related BaseGameActivity.java).

After many hours I've finally managed to get rid of all the errors, but I have yet to test if this will cause any limitations.

Upvotes: 0

Baris
Baris

Reputation: 11

I got the same issue in Helper class like below

import com.google.android.gms.games.Games;
import com.google.android.gms.appstate.AppStateManager;
import com.google.android.gms.games.multiplayer.Multiplayer;
import com.google.android.gms.plus.Plus;

My solution was updating google play services. Now I dont get any error

Upvotes: 1

Related Questions