[Error][CC3.3.0] 3.3.0 Breaks SDKBox GUI & IAP Error

Cocos Creator: 3.3.0


How to replicate:

  1. Install SDKBox from store
  2. Then, from menu launch SDKBox (Extension → SDKBox → Launch).
    image
  3. SDKBox GUI Window showed up blank (and nothing happend).

Current Workaround:
Downgrade and open project in 3.2.0 and install SDKBox and upgrade SDKBox. After that, switch back to 3.3.0.

Thank you. I will ask engineering to have a look.

I’m also having another issue where sdkbox is missing in debug / production build using 3.3.0.
Basically,

  1. Build the Project
  2. Make the Project
  3. Import/Update the SDKBox’s plugin (eg: IAP).
  4. Make the Project again
  5. Install APK on android to test
  6. We will get sdkbox is not defined error

Please kindly help me fix this issue ASAP guys. Many thanks in advance!


Update: I changed to 3.2.1 and I could test IAP when debug mode is enabled. When, debug is disabled, I couldn’t get any product info. I didn’t get any error from getinitializedErrMsg() and nothing is printed in logcat as well. :frowning:

I managed to extract errors from production build.
Are we tracking users’ information?
Most importantly, how do I fix those errors (no such errors in debug build) ?

2021-09-16 21:18:06.658 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getSystemVersion()Ljava/lang/String;"
2021-09-16 21:18:06.659 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getSystemVersion, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.659 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getAppPackageId()Ljava/lang/String;"
2021-09-16 21:18:06.659 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getAppPackageId, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.659 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getCountryCode()Ljava/lang/String;"
2021-09-16 21:18:06.659 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getCountryCode, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.659 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getDeviceName()Ljava/lang/String;"
2021-09-16 21:18:06.659 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getDeviceName, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.659 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getTimestamp()Ljava/lang/String;"
2021-09-16 21:18:06.660 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getTimestamp, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.660 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getChannel()Ljava/lang/String;"
2021-09-16 21:18:06.660 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getChannel, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.660 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getAppName()Ljava/lang/String;"
2021-09-16 21:18:06.660 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getAppName, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.660 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getAndroidId()Ljava/lang/String;"
2021-09-16 21:18:06.660 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getAndroidId, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.660 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.getNetworkType()Ljava/lang/String;"
2021-09-16 21:18:06.660 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method getNetworkType, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature ()Ljava/lang/String;
2021-09-16 21:18:06.660 13122-13150/? W/System.err: java.lang.NoSuchMethodError: no static method "Lcom/sdkbox/plugin/TrackingInfoAndroid;.trackRequest(Ljava/lang/String;)V"
2021-09-16 21:18:06.661 13122-13150/? E/SDKBOX_CORE: JNI_BRIDGE Not found static method trackRequest, for clazz com/sdkbox/plugin/TrackingInfoAndroid and signature (Ljava/lang/String;)V
2021-09-16 21:18:06.661 13122-13150/? E/SDKBOX_CORE: JNIInvoke with null obj ref.

Hello @slackmoehrle

Could you please kindly help me with Android’s IAP not working on production build as reported above?

Thanks

I will ping engineering for help.

Thank you again as always.

We have to finish a project by end of this month. :sweat_smile:
We assumed what already working in 2.x would work in 3.x and we didn’t test IAP until a few days ago.
I tried to fix it but, sdkbox is a compiled jar and I couldn’t touch it.
So, we do need your support ASAP.

The symbol may have been eliminated, try to keep com/sdkbox/plugin/TrackingInfoAndroid class in proguard-rules.pro

Thanks for your reply.

TBH, I’m not very familiar with proguard.
Could you share me where is that file located?

example\native\engine\android\app\proguard-rules.pro

Added the following lines at this file:
{project}\native\engine\android\app\proguard-rules.pro

-keep public class com.sdkbox.** { *; }
-dontwarn com.sdkbox.**

3.2.1 → IAP Ok now.

3.3.0 → App Crash upon launch with “Cause: null pointer dereference” error (logcat attached)

2021-09-18 17:20:16.317 21892-21892/? A/DEBUG: backtrace:
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #00 pc 00000000000baff0  /system/lib64/libgui.so (android::Surface::hook_queueBuffer_DEPRECATED(ANativeWindow*, ANativeWindowBuffer*)+20) (BuildId: 2a35a17b509e92180097b27bf0994f1e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #01 pc 000000000001b178  /system/lib64/libandroid.so (ANativeWindow_setBuffersGeometry+40) (BuildId: ceb5db32322608be4f0b4b6e83297046)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #02 pc 0000000000c5319c  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (cc::gfx::GLES3Context::doInit(cc::gfx::ContextInfo const&)+2424) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #03 pc 0000000000b873a4  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (cc::gfx::GLES3Device::doInit(cc::gfx::DeviceInfo const&)+104) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #04 pc 000000000089d2dc  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (cc::gfx::Device::initialize(cc::gfx::DeviceInfo const&)+236) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #05 pc 0000000000b686a0  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (cc::gfx::DeviceAgent::doInit(cc::gfx::DeviceInfo const&)+20) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #06 pc 000000000089d2dc  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (cc::gfx::Device::initialize(cc::gfx::DeviceInfo const&)+236) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #07 pc 000000000095c018  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (bool cc::gfx::DeviceManager::tryCreate<cc::gfx::GLES3Device, void>(cc::gfx::DeviceInfo const&, cc::gfx::Device**)+68) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #08 pc 0000000000950bd0  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (js_gfx_DeviceManager_createRegistry(v8::FunctionCallbackInfo<v8::Value> const&)+332) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #09 pc 000000000154dd44  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo)+532) (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #10 pc 000000000154d3a0  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #11 pc 000000000154cb74  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)
2021-09-18 17:20:16.317 21892-21892/? A/DEBUG:       #12 pc 0000000001468668  /data/app/~~sd465CLyjo9zqHKDhKdVkg==/com.cocos.android-SpFF2DKXNBt_xwn-yZfCnw==/lib/arm64/libcocos.so (BuildId: 540b67efd5625850d53dedf0bd49fb8008b4917e)


Update: 3.3.1 → IAP work again :smiley:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.