Error when trying to open PlayScape Exchange catalog on Android -
i'm trying implement playscape sdk gamemaker: studio. i've followed native android integration guide and, after work, got build without errors. however, getting error message when try open playscape exchange catalog , i'm not sure means.
i'm using following code:
package ${yyandroidpackagename}; import ${yyandroidpackagename}.runneractivity; import com.yoyogames.runner.runnerjnilib; //some more general imports go here import com.playscape.exchange.exchangemanager; public class gmplayscape extends extensionbase { public void showexchange() { runneractivity.viewhandler.post( new runnable() { public void run() { exchangemanager.getinstance().showcatalog(); } }); } }
after calling showexchange() own code, i'm getting following error:
e/androidruntime(17482): fatal exception: main e/androidruntime(17482): process: com.companyname.playscape_for_android, pid: 17482 e/androidruntime(17482): java.lang.nullpointerexception: attempt invoke interface method 'void java.util.concurrent.executorservice.execute(java.lang.runnable)' on null object reference e/androidruntime(17482): @ com.playscape.exchange.exchangemanager.showcatalog(exchangemanager.java:99) e/androidruntime(17482): @ com.companyname.playscape_for_android.gmplayscape$1.run(gmplayscape.java:38) e/androidruntime(17482): @ android.os.handler.handlecallback(handler.java:739) e/androidruntime(17482): @ android.os.handler.dispatchmessage(handler.java:95) e/androidruntime(17482): @ android.os.looper.loop(looper.java:135) e/androidruntime(17482): @ android.app.activitythread.main(activitythread.java:5343) e/androidruntime(17482): @ java.lang.reflect.method.invoke(native method) e/androidruntime(17482): @ java.lang.reflect.method.invoke(method.java:372) e/androidruntime(17482): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:905) e/androidruntime(17482): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:700)
after this, application crashes. doing wrong here?
this issues identified bug in sdk. fixed playscape publishing kit 1.15.
Comments
Post a Comment