[英]Google Play real-time multiplayer does not work on a Genymotion virtual device
I have an Android app with Google Play Achievements and Leaderboards Services. 我有一个带有Google Play成就和排行榜服务的Android应用。 I want to add Real-time Multiplayer.
我要添加实时多人游戏。 So I have downloaded ButtonClicker2000 example from Github and link it to an my existing game service
所以我从Github下载了ButtonClicker2000示例,并将其链接到我现有的游戏服务
This app works fine on physical devices, but on Genymotion device attempt to create Room returns Status code 7000 in callback onRoomCreated . 这个应用程序适用于物理设备很好,但在Genymotion设备试图创建房间回调返回状态代码7000 onRoomCreated 。
// Called when room has been created
@Override
public void onRoomCreated(int statusCode, Room room) {
Log.d(TAG, "onRoomCreated(" + statusCode + ", " + room + ")");
if (statusCode != GamesStatusCodes.STATUS_OK) {
Log.e(TAG, "*** Error: onRoomCreated, status " + statusCode);
showGameError();
return;
}
// save room ID so we can leave cleanly before the game starts.
mRoomId = room.getRoomId();
// show the waiting room UI
showWaitingRoom(room);
}
Status code 7000 value is: STATUS_REAL_TIME_CONNECTION_FAILED - Failed to initialize the network connection for a real-time room. 状态代码7000的值为:STATUS_REAL_TIME_CONNECTION_FAILED-无法初始化实时会议室的网络连接。
Turning On/Off Real-time multiplayer switch on Developer Console does not change result. 在开发者控制台上打开/关闭实时多人游戏开关不会更改结果。
I don't shure multiplayer can work on Genymotion. 我不保证多人游戏可以在Genymotion上使用。 I don't found any explicit confirmation on stackoverflow.
我没有在stackoverflow上找到任何明确的确认。
Genymotion version 2.6.0 Revision 20151127-3674435 Genymotion版本2.6.0修订版20151127-3674435
Device: Google Nexus S 4.1.1 装置:Google Nexus S 4.1.1
Google Play services version: 8.4.89 (2428711-070) Google Play服务版本:8.4.89(2428711-070)
GApps: gapps-jb-20121011-signed.zip GApp:gapps-jb-20121011-signed.zip
If anyone run real-time multiplayer on Genymotion please answer. 如果有人在Genymotion上运行实时多人游戏,请回答。
Thanks. 谢谢。
I am running my multiplayer game on genymotion devices. 我正在genymotion设备上运行我的多人游戏。 I am using the same specs as you.
我使用的规格与您相同。 Unfortunately I receive sometimes a error (status code 4, today first time status code 7000).
不幸的是,有时我会收到一个错误(状态代码4,今天是第一次状态代码7000)。 However, most times it works.
但是,大多数情况下都可以。 I followed this tutorial: SO-Thread .
我遵循了本教程: SO-Thread 。 Did you changed the code, like onstart(), .connect or .create call?
您是否更改了代码,例如onstart()、. connect或.create调用?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.