Android Question Runtime error

Ian Gordon-Brown

Member
Licensed User
Longtime User
Hello All,

Hope someone can help. This page exists (page2).
I run this code
=====================================
Private Sub B4XPage_Created (Root1 As B4XView)

Dim c As cuContact
Dim strBuild As StringBuilder

Root = Root1
'load the layout to Root
Root.LoadLayout("Page2")
=======================================

And get this this error

java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType

Any suggestions please?

Thanks
Ian
 

makis_best

Well-Known Member
Licensed User
Longtime User
That error usually means that you use the same name on a variable and a view or a layout or that some of that names written wrong.
 
Upvote 0
Top