Android Question Failed resolution of: Landroidx/print/PrintHelpe

Puthut Wibowo

Member
Licensed User
Hello, all,

I am trying to create a File in the following post Printing and Pdf creation

but many experience errors with the following message

Log:
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/print/PrintHelper;
    at anywheresoftware.b4a.objects.PdfDocumentWrapper$Printer.Initialize(PdfDocumentWrapper.java:119)
    at b4a.example.main._activity_create(main.java:392)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.example.main.afterFirstLayout(main.java:105)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7094)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.print.PrintHelper" on path: DexPathList[[zip file "/data/app/b4a.example-77NEIFgZ7S1px_hMEaP-Bw==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-77NEIFgZ7S1px_hMEaP-Bw==/lib/arm, /data/app/b4a.example-77NEIFgZ7S1px_hMEaP-Bw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 18 more


I've been looking for posts in this forum related to this, one of them is Jetifier andorid (x) into an additional folder, cleaning project and I have done everything but it still has an error.

What should I do to get the application running

Thanks U Before
 

Attachments

  • Printing.zip
    16.2 KB · Views: 223

drgottjr

Expert
Licensed User
Longtime User
looks like you're missing androidx.print. how up-to-date is your sdk? launch it from the ide and type "androidx.print" in the search box. see if it says installed.
 
Upvote 0
Top