android/connectivity-samples

Find Opponent button gives error in RockPaperScissorsKotlin

ShoaibKakal opened this issue · 3 comments

E/GoogleApiManager: Failed to get service from broker. 
    java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.google.crossdevice.sample.rps, sha256=[167f3f67569c9588c936653e5f528bc756b21afff40c9afb5376e59bf81a797a], atk=false, ver=222658044.true (go/gsrlt)

Hello @ShoaibKakal

If you have successfully enrolled in the Google Play Services Beta program, check the GMS version you're using on your test-device/environment = now you should be using anyway a 22.32.55 release variant-build for GMS.

For instance, no persistent issues [1] here on my ARM test-devices (running API 26 Oreo 8.0 and higher) with self-signed RPS Kotlin Demo package [2] & the following GMS Beta build :

package      : com.google.android.gms
version      : 22.32.55 (040408-468276081)
released     : August 24th, 2022
architecture : arm64-v8a + armeabi-v7a
minimum SDK  : API level 23 - Marshmallow 6.0
Screen DPI   : 480 dpi

[1] Cross-Device SDK/API are in (early) developer preview stage. So non-persistent runtime crashes and/or discovery KOs belong to current CD user experience. Just check/set WiFi+BT+nearby-share settings for both devices (most non-persistent issues I've noticed until now were related to lost/broken settings) and repeat the participant discovery / session join.

[2] In such demo-package I've just upgraded gradle/kotlin versions in order to avoid module warnings & to get rid of some runtime hiccups (logcat checks) on discovery/session stages - see PR #273 .

02_RPS_Fight

@ShoaibKakal were you able to resolve this issue?

Yes @whitevegagabriel by following @rawmain comment.