Android Studio: Unable to import android.gms.games packages?
Having quite a bit of trouble with Android Studio at the moment - I'm using the real-time multiplayer features for a simple game. However when the app is compiling, the errors are telling me the various packages listed below do not exist. I have real-time multiplayer enabled on the dev console, and I updated all the tools in case that was the problem. I'm wondering if I have overlooked something, or if there is a specific way of fixing this error? I've looked at previous questions for this problem but either the fix doesn't work or they're using Eclipse instead.
import com.google.android.gms.games.Games; import com.google.android.gms.games.GamesActivityResultCodes; import com.google.android.gms.games.multiplayer.Invitation; import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; import com.google.android.gms.games.multiplayer.Participant; import com.google.android.gms.games.multiplayer.realtime.RealTimeMessage; import com.google.android.gms.games.multiplayer.realtime.RealTimeMessageReceivedListener; import com.google.android.gms.games.multiplayer.realtime.Room; import com.google.android.gms.games.multiplayer.realtime.RoomConfig; import com.google.android.gms.games.multiplayer.realtime.RoomStatusUpdateListener; import com.google.android.gms.games.multiplayer.realtime.RoomUpdateListener; import com.google.example.games.basegameutils.BaseGameActivity;