Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

javabinding not supporting 4G device but works fine on 3G, I'm using VS 2019 16.4.5 Xamarin 16.4

smhasansmhasan KWMember ✭✭✭

02-26 14:52:17.131 D/HWUIExtension(20944): MTKProgramCache.generateProgram: 563053037879364
02-26 14:52:17.132 D/HWUIExtension(20944): createProgram 0x0002001800500044, binary 0x927d0024, length 12972, format 37168 within 735ns
02-26 14:52:17.157 D/Mono (20944): Loading reference 2 of TPS390_PRINTER.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
02-26 14:52:17.157 D/Mono (20944): Assembly Ref addref TPS390_PRINTER[0xa6b2cc40] -> Java.Interop[0xa58cbfc0]: 9
02-26 14:52:17.238 W/System.err(20944): java.lang.ClassNotFoundException: com.common.sdk.printer.UsbPrinterManager
02-26 14:52:17.238 W/System.err(20944): at java.lang.Class.classForName(Native Method)
02-26 14:52:17.239 W/System.err(20944): at java.lang.Class.forName(Class.java:453)
02-26 14:52:17.239 W/System.err(20944): at java.lang.Class.forName(Class.java:378)
02-26 14:52:17.240 W/System.err(20944): at com.telpo.tps550.api.printer.UsbThermalPrinter.start(UsbThermalPrinter.java:132)
02-26 14:52:17.240 W/System.err(20944): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.common.sdk.printer.UsbPrinterManager" on path: DexPathList[[zip file "/data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/base.apk"],nativeLibraryDirectories=[/data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/lib/arm, /data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
02-26 14:52:17.241 W/System.err(20944): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
02-26 14:52:17.241 W/System.err(20944): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
02-26 14:52:17.242 W/System.err(20944): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-26 14:52:17.242 W/System.err(20944): ... 4 more
[0:] PRINTERR at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0002a] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0
at Com.Telpo.Tps550.Api.Printer.UsbThermalPrinter.Start (System.Int32 p0) [0x00018] in D:\TPS390_PRINTER\TPS390_PRINTER\obj\Release\generated\src\Com.Telpo.Tps550.Api.Printer.UsbThermalPrinter.cs:962
at TPSSample.MainPage+<>c.b__8_1 () [0x00000] in D:\MyProjects\TPSSample\TPSSample\TPSSample\MainPage.xaml.cs:40
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2476
at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319
--- End of stack trace from previous location where exception was thrown ---

at TPSSample.MainPage.PrintBalanceUSB () [0x00072] in D:\MyProjects\TPSSample\TPSSample\TPSSample\MainPage.xaml.cs:40
--- End of managed Com.Telpo.Tps550.Api.InternalErrorException stack trace ---
com.telpo.tps550.api.InternalErrorException
at com.telpo.tps550.api.printer.UsbThermalPrinter.start(UsbThermalPrinter.java:135)
[0:] CANCELPROMPT at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0002a] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0
at Com.Telpo.Tps550.Api.Printer.UsbThermalPrinter.Start (System.Int32 p0) [0x00018] in D:\TPS390_PRINTER\TPS390_PRINTER\obj\Release\generated\src\Com.Telpo.Tps550.Api.Printer.UsbThermalPrinter.cs:962
at TPSSample.MainPage+<>c.b__8_1 () [0x00000] in D:\MyProjects\TPSSample\TPSSample\TPSSample\MainPage.xaml.cs:40
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2476
at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319
--- End of stack trace from previous location where exception was thrown ---

at TPSSample.MainPage.PrintBalanceUSB () [0x00072] in D:\MyProjects\TPSSample\TPSSample\TPSSample\MainPage.xaml.cs:40
--- End of managed Com.Telpo.Tps550.Api.InternalErrorException stack trace ---
com.telpo.tps550.api.InternalErrorException
at com.telpo.tps550.api.printer.UsbThermalPrinter.start(UsbThermalPrinter.java:135)
02-26 14:52:20.577 I/Choreographer(20944): Skipped 176 frames! The application may be doing too much work on its main thread.
02-26 14:52:20.581 W/System.err(20944): java.lang.ClassNotFoundException: com.common.sdk.printer.UsbPrinterManager
02-26 14:52:20.581 W/System.err(20944): at java.lang.Class.classForName(Native Method)
02-26 14:52:20.581 W/System.err(20944): at java.lang.Class.forName(Class.java:453)
02-26 14:52:20.582 W/System.err(20944): at java.lang.Class.forName(Class.java:378)
02-26 14:52:20.583 W/System.err(20944): at com.telpo.tps550.api.printer.UsbThermalPrinter.stop(UsbThermalPrinter.java:346)
02-26 14:52:20.583 W/System.err(20944): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.common.sdk.printer.UsbPrinterManager" on path: DexPathList[[zip file "/data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/base.apk"],nativeLibraryDirectories=[/data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/lib/arm, /data/app/com.companyname.tpssample-LTLrC66VWeQnA7OL1jrV6A==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
02-26 14:52:20.584 W/System.err(20944): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
02-26 14:52:20.584 W/System.err(20944): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
02-26 14:52:20.585 W/System.err(20944): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
02-26 14:52:20.585 W/System.err(20944): ... 4 more
Java.Lang.NullPointerException: 'Attempt to invoke virtual method 'java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String, java.lang.Class[])' on a null object reference'

Best Answer

Answers

  • smhasansmhasan KWMember ✭✭✭

    Dear @Jarvan Thanks for reply, I fixed the issue,

Sign In or Register to comment.