简体   繁体   English

Google Play实时多人游戏无法在Genymotion虚拟设备上运行

[英]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.

相关问题 Android上的Google实时多人游戏 - Google Real-time Multiplayer on Android Google玩实时多人并发-有时玩家会在同一时间选择正确的答案 - Google play real-time multiplayer concurrency - sometimes players pick the right answer at the same time 当应用程序进入后台时,实时多人游戏Google Play游戏服务同行会断开连接 - Real-time Multiplayer Google Play Games Services peer gets disconnected when app goes in background 如何在实时多人Google Play游戏服务中创建房间时向其他参与者发送数据 - How to send data to other participant on Room creation in Real-time Multiplayer Google Play Game Services 如何在使用Google Play游戏服务的实时多人游戏中使用僵尸玩家? - How can I use bot players in real-time multiplayer games using Google Play game services? 如何使用Google Play游戏在实时多人游戏中处理应用版本? - How to handle app versions in real-time multiplayer using Google Play Games? 如何检测客户是否故意在Google Play游戏实时多人游戏中留下房间? - How to detect if client intentionally left Room in Google Play Games Real-time Multiplayer? Genymotion虚拟设备无法播放 - Genymotion virtual device not play Google Play服务实时多人消息 - Google Play Services Real Time Multiplayer Message 实时多人游戏 - Google Play 服务 - Real time MultiPlayer - Google Play services
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM