Android Question Error Cannot convert: class anywheresoftware.b4a.objects.PanelWrapper, to: class anywheresoftware.b4

Puthut Wibowo

Member
Licensed User
Hello All,

I'm trying to make a program application from source
  1. Google Maps
  2. [B4X] [XUI] AS Bottom Menu V2
  3. Connect Android to MySQL Database Tutorial
  4. Cards list with CustomListView
And the Problems with following Error:

B4X:
Logger connected to:  samsung SM-J415F
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Tab 2
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Respon Dari Server: [{"id_lokasi":"1","id_kategori":"1","NamaLokasi":"Kantor Wali Kota","alamat":"Jl. Jend. Ahmad Yani, RT.001\/RW.005, Marga Jaya, Kec. Bekasi Sel., Kota Bks, Jawa Barat 17141","id_wilayah":"","telepon":"","website":"","email":"","lat":"-6.236002","longitude":"106.994215","pic":""},{"id_lokasi":"2","id_kategori":"1","NamaLokasi":"Kantor DPRD Kota Bekasi","alamat":"Jl. Chairil Anwar No.112, RT.004\/RW.009, Margahayu, Kec. Bekasi Tim., Kota Bks, Jawa Barat 17113","id_wilayah":"","telepon":"(021) 883557","website":"","email":"","lat":"-6.257744","longitude":"107.011695","pic":""}]
Error occurred on line: 135 (Main)
java.lang.RuntimeException: java.lang.RuntimeException: Cannot convert: class anywheresoftware.b4a.objects.PanelWrapper, to: class anywheresoftware.b4a.objects.MapFragmentWrapper$PolylineWrapper
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:292)
    at as.bottom.menu.main._createitemlokasi(main.java:1011)
    at as.bottom.menu.main._jobdone(main.java:1504)
    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:144)
    at anywheresoftware.b4a.BA$2.run(BA.java:370)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7094)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: java.lang.RuntimeException: Cannot convert: class anywheresoftware.b4a.objects.PanelWrapper, to: class anywheresoftware.b4a.objects.MapFragmentWrapper$PolylineWrapper
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:409)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
    ... 18 more


I attach my source code, hopefully there is a way out
Note: I removed the Google Query Link and API from the attachment.

Thanks
PW
 

Puthut Wibowo

Member
Licensed User
Finally I Find The Answer, the problem is

Dim pline As Polyline

the reason is because of the polyline declaration from the google map library
 
Upvote 0
Top