Sdkbox iap jni error

Sdkbox iap jni error
0.0 0

#1

Hello!
I’m integrating SDKBOX IAP into a cocos 3.14 project. iOS works just fine, Android compiles and runs, but I get a crash when I try to purchase the item with this error message:

JNI DETECTED ERROR IN APPLICATION: jstring is an invalid local reference: 0x1 (0xdead4321)
in call to GetStringUTFChars
from void com.sdkbox.plugin.IAPWrapper.nativeOnPayResult(java.lang.String, int, java.lang.String)

Please advice!!

Best,

Davide


#2

Can you let us know which version of SDKBOX IAP are you using?


#3

Hei,

Can IAP work now ?
We also provide [cpp, Lua, JS sample] (https://github.com/sdkbox/sdkbox-sample-iap).


#4

Hello guys!
I was able to fix it downloading the cpp sample and importing the .jars from there! Thanks!!