Closed yclau closed 4 years ago
Hi @yclau hey, hmm I'm using plugin with latest 6.3 version and didn't noticed the issue, but could be something with demo, will check it out.
thanks
this is my package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN
this is my demo app folder , i added worker folder inside and i using Nativescript version 6.3.3.
Sorry can't upload 500 mb zip file to you. If anything need to confirm let me know.
Thank you.
I solved the problem. I pass wrong parameter when connect the printer. Because I see the parameter is port. Sorry my mistake.
i using demo version and migrate to latest version, all connect is fine but when printing will shown out the error message
JS: ERROR Error: java.lang.NullPointerException: Attempt to invoke interface method 'int HPRTAndroidSDK.IPort.WriteData(byte[], int)' on a null object reference
JS: HPRTAndroidSDK.HPRTPrinterHelper.PrintText(HPRTPrinterHelper.java:2394) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1242) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:1122) JS: com.tns.Runtime.callJSMethod(Runtime.java:1109) JS: com.tns.Runtime.callJSMethod(Runtime.java:1089) JS: com.tns.Runtime.callJSMethod(Runtime.java:1081) JS: com.tns.gen.java.lang.Object_vendor_115390_32_ClickListenerImpl.onClick(Object_vendor_115390_32_ClickListenerImpl.java:18)
JS: android.view.View.performClick(View.java:6663) JS: android.view.View.performClickInternal(View.java:6635) JS: android.view.View.access$3100(View.java:794)
JS: android.view.View$PerformClick.run(View.java:26199) JS: android.os.Handler.handleCallback(Handler.java:907) JS: android.os.Handler.dispatchMessage(Handler.java:105)
is it need use new hprt jar file or ?