"FATAL EXCEPTION: main' while running on Android Mode

Hi everyone! I wrote this code in Processing 4.2 with the Android Mode:

void setup() {
  fullScreen();
}

void draw() {
  background(0);
  text("Text on the screen", 100, 100);
}

When I try to run it, it execute on the tablet and it closes immediately with “ keeps stopping” and buttons “App info” and “Close app”. In the console (after BUILD SUCCESSFUL in 11s) appears this:

FATAL EXCEPTION: main
Process: processing.test.sketch_230419b, PID: 14645
java.lang.VerifyError: Rejecting class processing.a2d.PSurfaceAndroid2D that attempts to sub-type erroneous class processing.core.PSurfaceNone (declaration of ‘processing.a2d.PSurfaceAndroid2D’ appears in /data/app/~~3OPub1v_cuEd4ETbIF4pVQ==/processing.test.sketch_230419b-3hXmpHaK7ZZFq8LQ0kOh0A==/base.apk)
at processing.a2d.PGraphicsAndroid2D.createSurface(PGraphicsAndroid2D.java:180)
at processing.core.PApplet.initSurface(PApplet.java:538)
at processing.android.PFragment.onCreateView(PFragment.java:149)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:251)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435)
at android.app.Activity.performStart(Activity.java:8231)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3872)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2336)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.VerifyError: Verifier rejected class processing.core.PSurfaceNone: android.content.Context processing.core.PSurfaceNone.getContext() failed to verify: android.content.Context processing.core.PSurfaceNone.getContext(): [0x22] can’t resolve returned type ‘Reference: android.content.Context’ or ‘Unresolved Reference: android.support.wearable.watchface.WatchFaceService’ (declaration of ‘processing.core.PSurfaceNone’ appears in /data/app/~~3OPub1v_cuEd4ETbIF4pVQ==/processing.test.sketch_230419b-3hXmpHaK7ZZFq8LQ0kOh0A==/base.apk)
… 28 more

What I have to do to solve it?
Thank you

See if your problem is answered by this recent thread: AndroidMode fails on new Galaxy Tab A8 - #4 by svan