3

これはquickGameへの私の機能です

Bundle autoMatchCriteria = RoomConfig.createAutoMatchCriteria(1, 1, 0);
RoomConfig.Builder rtmConfigBuilder = RoomConfig.builder(this);
rtmConfigBuilder.setMessageReceivedListener(this);
rtmConfigBuilder.setRoomStatusUpdateListener(this);
rtmConfigBuilder.setAutoMatchCriteria(autoMatchCriteria);
switchToScreen(R.id.screen_wait);
//keepScreenOn();
//resetGameVars();
getGamesClient().createRoom(rtmConfigBuilder.build());

およびゲームが停止する onRoomCreated

@Override
    public void onRoomCreated(int statusCode, Room room) {
        Log.d(TAG, "onRoomCreated(" + statusCode + ", " + room + ")");
        if (statusCode != GamesClient.STATUS_OK) {
            Log.e(TAG, "*** Error: onRoomCreated, status " + statusCode);
            showGameError();
            return;
        }
        showWaitingRoom(room);
    }

statusCode = 7000私はどちらがであるかを取得しているのでSTATUS_REAL_TIME_CONNECTION_FAILEDroom = null問題はquickGame機能にあると思います。

D/Multiplayer(24221): Sign-in succeeded.
D/Multiplayer(24221): GameHelper: onActivityResult: req=10001, resp=RESULT_CANCELED
D/Multiplayer(24221): GameHelper: onActivityResult: request code not meant for us. Ignoring.
W/Multiplayer(24221): *** invitation inbox UI cancelled, 0
D/Multiplayer(24221): GameHelper: onActivityResult: req=10000, resp=RESULT_OK
D/Multiplayer(24221): GameHelper: onActivityResult: request code not meant for us. Ignoring.
D/Multiplayer(24221): Select players UI succeeded.
D/Multiplayer(24221): Invitee count: 1
D/Multiplayer(24221): Creating room...
D/Multiplayer(24221): Room created, waiting for it to be ready...
D/Multiplayer(24221): onRoomCreated(7000, null)
E/Multiplayer(24221): *** Error: onRoomCreated, status 7000
W/ResourceType(24221): getEntry failing because entryIndex 13 is beyond type entryCount 1
W/ResourceType(24221): Failure getting entry for 0x7f0b000d (t=10 e=13) in package 0 (error -2147483647)
E/GooglePlayServicesUtil(24221): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
W/PicturePileLayerContent(24221): Warning: painting PicturePile without content!
W/PicturePileLayerContent(24221): Warning: painting PicturePile without content!
W/PicturePileLayerContent(24221): Warning: painting PicturePile without content!

ソースコードをGoogleの例と比較していますが、タブレットと最新のSDKでGoogle Play Services 4.0を使用しても効果はありません

4

3 に答える 3

1

Google Play デベロッパー コンソールでマルチプレイヤーを有効にしましたか?

マルチプレイヤー サポートの有効化

プレイヤー マッチメイキングなどのゲーム サービスのマルチプレイヤー サポートを統合するには、マルチプレイヤー設定を有効にする必要があります。現在、Android のリアルタイム マルチプレイヤーのみがサポートされています。

マルチプレイヤーを有効にするには:

Google Play デベロッパー コンソールから Games with Game Services ページを開き、ゲームを選択します。ゲームの [リンクされたアプリ] ページを開き、マルチプレイヤー設定をオンに切り替えます。[下書きとして保存] をクリックして、設定を保存します。

ソース: https://developers.google.com/games/services/console/configuring#enabling_multiplayer_support

于 2013-11-14T22:42:37.910 に答える
0

お知らせするために-私は自分の問題が何であるかを理解しました..まあまあ..

私の場合、問題は AdMob であることが判明しました。最初は別のライブラリとして統合されていましたが、GooglePlus をゲームに追加すると、コンソールに多くのものが表示されるようになりました。

問題が GooglePlus であると混乱しました (不足しているリソースについて表示されているメッセージをスローします)。しかし、それを行っているのは AdMob の部分です。

それにもかかわらず、これを理解した後でも、GooglePlus 操作は機能しません。

最も奇妙なことは、古い HTC Sense (2.2) では動作するが、4.x デバイスでは動作しないことです..

私はすべてをはぎ取ったところです - その中で2日を失いました.. 1つの+1ボタンのために..

于 2013-11-08T13:24:49.700 に答える
0

インターネットから google play services.apk をインストールしましたが、それが理由でした。Google Play からの更新を待っています。現在、すべてが機能しています :)

于 2013-11-29T21:20:18.370 に答える