Android Question [Error ] Field customlistview1 was declared with the wrong type.

Waldemar Lima

Active Member
Licensed User
how can i fix it ?

b4a code :
B4X:
Sub Globals

    Private CustomListView1 As CustomListView

End Sub

Sub Activity_Create(FirstTime As Boolean)
    Dim rp As RuntimePermissions
    If rp.Check(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)=False Then
        Log("entrou aqui")
        rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    End If

    Starter.Session = 10
    Activity.LoadLayout("criar_role")
  
End Sub
debugger :
B4X:
Logger connected to:  Xiaomi Redmi 6
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
onAuthStateChanged: com.google.fir....
** Activity (main) Create, isFirst = true **
0
** Activity (main) Resume **
*** Service (firebasemessaging) Create ***
** Service (firebasemessaging) Start **
conectado :
inicializando fcm
Server_CheckVersion entrou | Session : 1
Answer = 10  -  Appversion = 10

Data.lock = [Ljava.lang.String;@15***************
Server_Auth entrou | Session : 1
** Activity (main) Pause, UserClosed = true **
Sleep not resumed (context is paused): com.***************.b4xloadingindicator$ResumableSub_MainLoop
** Activity (app) Create, isFirst = true **
TempPAram = AppIn=[****************
** Activity (app) Resume **
fcm = ***************
*** Service (imagedownloader) Create ***
** Service (imagedownloader) Start **
ligou porra !
SSL_UNTRUSTED
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
https://***************
recebi ads banner
Clicked: ***************
Server_VerifyRoleData entrou | Session : 4
verify role data = Done
** Activity (app) Pause, UserClosed = true **
** Activity (criar_roles) Create, isFirst = true **
entrou aqui
heuehue
criar_roles_activity_create (java line: 417)
java.lang.RuntimeException: java.lang.RuntimeException: Field customlistview1 was declared with the wrong type.
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at com.***************.criar_roles._activity_create(criar_roles.java:417)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at com.***************.criar_roles.afterFirstLayout(criar_roles.java:104)
    at com.***************.criar_roles.access$000(criar_roles.java:17)
    at com.***************.criar_roles$WaitForLayout.run(criar_roles.java:82)
    at android.os.Handler.handleCallback(Handler.java:794)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6662)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.RuntimeException: Field customlistview1 was declared with the wrong type.
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:430)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
    ... 14 more
 
Top