PluginSdkboxPlay: showAchievements, showLeaderboards crash (Android only)

PluginSdkboxPlay: showAchievements, showLeaderboards crash (Android only)
0.0 0

#1

Getting the crashes:

android.content.ActivityNotFoundException:
at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1936)
at android.app.Instrumentation.execStartActivity (Instrumentation.java:1615)
at android.app.Activity.startActivityForResult (Activity.java:4472)
at android.app.Activity.startActivityForResult (Activity.java:4430)
at com.sdkbox.plugin.SdkboxGPGAchievements.showAchievements (SdkboxGPGAchievements.java:465)

android.content.ActivityNotFoundException:
at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1936)
at android.app.Instrumentation.execStartActivity (Instrumentation.java:1615)
at android.app.Activity.startActivityForResult (Activity.java:4472)
at android.app.Activity.startActivityForResult (Activity.java:4430)
at com.sdkbox.plugin.SdkboxGPGLeaderboards.showLeaderBoardImpl (SdkboxGPGLeaderboards.java:440)
at com.sdkbox.plugin.SdkboxGPGLeaderboards.showLeaderboard (SdkboxGPGLeaderboards.java:279)

Any idea why this would be happening? This is a release app downloaded from Google Play store

Edit: I’m not sure if there is some OAuth problem- the instructions from google were a lot more complex than the process I went through- basically it seemed to generate everything for me, and gave me the message: “You only need to include the application ID (my app number) in your Android app.”, which I did. This was for an app that was already on the store though, so maybe that was all taken care of…


#2

no Google Play Services on the Android device?


#3

That might be the case! The person who is testing mentioned they didn’t have it set up. The thing is, I thought I accounted for that:

void MainMenu::achievementCallback(cocos2d::Ref* pSender) {
if (!sdkbox::PluginSdkboxPlay::isSignedIn()) {
log(“NOTLOGGEDIN”);
return;
}

sdkbox::PluginSdkboxPlay::showAchievements();

}

Nothing should happen if the user is not signed in, unless I misunderstood something here


#4

I should mention this is using cocos2d-x v3.15.1, and sdkbox v1.0.1.24, and written in C++
The device that was used for testing was a Nexus 6P running Android O

I also upgraded the sdk numbers not sure if this would affect anything?
PROP_COMPILE_SDK_VERSION=26
PROP_MIN_SDK_VERSION=15
PROP_TARGET_SDK_VERSION=26
PROP_APP_PLATFORM=15


#5

can u double check the Cocos2dxActivity.java file ?

is it the SDKBOX.init(this); there?


#6

Yes that line is there.
Is it possible that increasing compileSdkVersion to 26 is the problem? Maybe it is calling for a screen that doesn’t exist in later versions


#7

would u try the compileSdkVersion=25 or 23?


#8

It’s currently 26… I might try uploading builds with lower sdk versions, that’s a last resort haha