Android Question Unknown Type: anywheresoftware.b4a.

epiCode

Active Member
Licensed User
I am getting this error in IDE for all projects which have clv in it.
B4XView is shown as B4XViewWrapper in pop up notification below.
xCLV online version in IDE is shown as 1.73 and current version as 1.73 even though forum version is 1.74.


1672756956533.png



on execution I get this error on application crash
B4X:
Copying updated assets files (2)
** Activity (main) Create, isFirst = true **
Error occurred on line: 26 (Main)
java.lang.RuntimeException: java.lang.ClassNotFoundException: anywheresoftware.b4a.samples.customlistview.customlistview
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at anywheresoftware.b4a.samples.customlistview.main._activity_create(main.java:396)
    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:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
    at anywheresoftware.b4a.samples.customlistview.main.afterFirstLayout(main.java:105)
    at anywheresoftware.b4a.samples.customlistview.main.access$000(main.java:17)
    at anywheresoftware.b4a.samples.customlistview.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6121)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
 

teddybear

Well-Known Member
Licensed User
Do you have a small project? same version no the notification in my ide
 
Upvote 0

epiCode

Active Member
Licensed User
Add a reference to XUI.
Adding reference removes the IDE error, however, app still crashed on activity.loadlayout line with same error as shared in post.
Deleting and recreating the layout exactly as previous resolved the error.
Thanks
 
Upvote 0
Top