Android Question error Sd_Printer 0.15

Discussion in 'Android Questions' started by rafaelcamara, May 21, 2019.

  1. rafaelcamara

    rafaelcamara Member Licensed User

    Hello friends, I'm having this problem after upgrading the SD_Printer library to 0.15.
    My B4A is with version 8.5 and Serial 1.31 as specified. Can someone help me?

    java.lang.NoSuchMethodError: No static method LogImpl(Ljava/lang/String;Ljava/lang/String;I)V in class Lanywheresoftware/b4a/keywords/Common; or its super classes (declaration of 'anywheresoftware.b4a.keywords.Common' appears in /data/app/sag.mobile.storenew-1/base.apk)
    at b4a.example.bt_printer._vvvv6(bt_printer.java:1255)
    at sag.mobile.storenew.exibirdoctos._imgimprime_click(exibirdoctos.java:16314)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:733)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:355)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4785)
    at android.view.View$PerformClick.run(View.java:19888)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5258)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:735)
     
  2. rafaelcamara

    rafaelcamara Member Licensed User

    O problema ocorre quando executa a função BTPRINTER.SelectFromAssociatedPrinter para listar as impressoras pareadas.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is related to the library being compiled with a newer version of B4A.
     
  4. rafaelcamara

    rafaelcamara Member Licensed User

    Right, but my B4A is more current than the library, is that it? and what would be the Serial library compatible with B4A 8.5?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    No. It requires B4A v8.8+.

    The problem is not related to the serial library.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice