I Ian Gordon-Brown Member Licensed User Longtime User Dec 19, 2020 #1 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
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 Dec 19, 2020 #2 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
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.
AnandGupta Expert Licensed User Longtime User Dec 19, 2020 #3 Ian Gordon-Brown said: Root.LoadLayout("Page2") Click to expand... BTW page2 here refers to layout file, just a hint. Regards, Anand Upvote 0
Ian Gordon-Brown said: Root.LoadLayout("Page2") Click to expand... BTW page2 here refers to layout file, just a hint. Regards, Anand