.bal file not found?

curioussavage

New Member
Licensed User
Longtime User
hello! I am very new to both programming and basic4android. I hope there isnt a thread on this topic already but I searched for a while and I didn't even know what to search for.

trying to make an app with 4 screens and ran into a problem. when I try to run the app now it says it cant find the .bal file associated with the layout for the first screen. however when I look in the folder the file is there. all I did was add a few more modules and set up the buttons that link to them and after that it stopped working. I just don't understand how it doesn't work anymore since I haven't messed with that section of code or the file. Any help would be greatly appreciated, I am trying to learn as I go so I still only have basic vocabulary for programing and 4 basic as well. below is what the debugger showed:


(Intent) Intent { act=android.intent.action.MAIN flg=0x20000000 cmp=anywheresoftware.b4a.designer/.Designer }
no extras
(Intent) Intent { act=android.intent.action.MAIN flg=0x20000000 cmp=anywheresoftware.b4a.designer/.Designer }
no extras
Installing file.
PackageAdded: package:b4a.example
** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 37)
Activity.LoadLayout("mainscreen")
(Intent) Intent { act=android.intent.action.MAIN flg=0x20000000 cmp=anywheresoftware.b4a.designer/.Designer }
no extras
Installing file.
PackageAdded: package:b4a.example
** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 37)
Activity.LoadLayout("mainscreen")
java.lang.RuntimeException: java.lang.RuntimeException: Field search was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:140)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:190)
at b4a.example.main._activity_create(main.java:242)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at b4a.example.main.afterFirstLayout(main.java:89)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:4945)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field search was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:249)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:273)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:273)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:123)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field search was declared with the wrong type.
 
Top