Android Question "Cannot get methods of class" Error

azclay

Member
Licensed User
I Have no idea why I am receiving this error, project worked one minute and then....

I have tried uninstalling and reinstalling b4a, started a new project copying and pasting the code still crashes while loading.
when the exception first occurred, it was in the starter module. on the "end sub" line of "Service_TaskRemoved", which is an empty sub in my project.
next thing I tried was to move what little code I had in the starter module to the main module and removed the starter module from the project. I still get the same error but now there is no line number in the log. Any help would be greatly appreciated, thanks

Error Log:
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:919)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Not starting debugger since process cannot load the jdwp agent.
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
common created.
Starting remote logger. Port: 35352
*** Debugger waiting for connection (0) ***
*** Debugger waiting for connection (1) ***
Cannot get methods of class: anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper, disabling cache.
:null,0
java.lang.ClassNotFoundException: anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:454)
    at java.lang.Class.forName(Class.java:379)
    at anywheresoftware.b4a.shell.Shell$MethodCache.getMethod(Shell.java:961)
    at anywheresoftware.b4a.shell.Shell.getMethod(Shell.java:644)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:731)
    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.initializeGlobals(main.java:327)
    at b4a.example.main.afterFirstLayout(main.java:102)
    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:914)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:241)
    at android.app.ActivityThread.main(ActivityThread.java:7582)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)
Caused by: java.lang.ClassNotFoundException: anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper
    ... 21 more
null: 31
** Activity (main) Create, isFirst = true **
After accept
 
Top