Hello,
I’ve recently added SDKboxPlay to my cocos2d-x project and when i try to sign in to google play games on an android device i get this error in the logcat
W/SdkboxGPGAuthentication: sign in failed:8 null
Previously i had this problem:
W/SdkboxGPGAuthentication: sign in failed:4 null
Which I resolved by adding another app to my google play game console, with the same package name, but with my upload certificate instead of my signing certificate, so that i could test google play games in a version that don’t come from the playstore.
After that I’ve seen the account selection UI for the first time, and once I’ve selected my account (enabled for testing) I got that waring in the console (errorCode: 8, that means INTERNAL_ERROR).
I’ve imported sdkbox play using the sdkbox cli, so it should be alright!
Here are some data:
Platform: linux
Cocos2d-x version: 3.17
build mode: release
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2016-2018 SDKBOX Inc. v1.0.2.8
installed packages:
v2.4.3.3 sdkboxplay
v2.4.3.3 googleplayservices
If you need somthing else (android.mk, gradle.build, ecc) let me know.
Thanks.
Carlo
Edit:
Created a new cocos2d-x 3.17 project and imported sdkboxplay, nothing else.
Still it does not work
W/SdkboxGPGAuthentication: sign in failed:8 null
My dependencied from build.gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':libcocos2dx')
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.android.gms:play-services-games:15.0.0'
implementation 'com.google.android.gms:play-services-drive:15.0.0'
}
Manifest:
<?xml version='1.0' encoding='UTF-8'?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.drenlab.xxxxx" android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature android:glEsVersion="0x00020000" />
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name">
<meta-data android:name="android.app.lib_name" android:value="MyGame" />
<activity android:configChanges="orientation|keyboardHidden|screenSize" android:label="@string/app_name" android:name="org.cocos2dx.cpp.AppActivity" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/google_app_id" />
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.Translucent" />
<activity
android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
android:exported="false"
android:excludeFromRecents="true" />
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
strings.xml.
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="app_name">prova gpg</string>
<string name="google_app_id">414872731xxx</string>
</resources>