Android Question Bal file not added in files folder

Stefano Di Chiano

Active Member
Licensed User
Hi,
this is the first project I'm working on since I updated b4a to v10.0. I made a new project by clicking on Files -> New -> Default. I made two new layout files and this warning appear in the logs tab:
File 'Main.bal' in Files folder was not added to the Files tab.
You should either delete it or add it to the project.
You can choose Tools - Clean unused files. (warning #14)
File 'Menu.bal' in Files folder was not added to the Files tab.
You should either delete it or add it to the project.
You can choose Tools - Clean unused files. (warning #14)
File 'Main.bal' is not used. (warning #15)
File 'Menu.bal' is not used. (warning #15)
I can see both the bal files in the files tab; I tried to click on Tools - Clean unused files but nothing changed; I tried to remove the files and make new ones but the warning appeared again.
If I try to run it, I get the following error:
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 32 (Main)
java.io.FileNotFoundException: /data/user/0/it.uppeee.uppeee/files/virtual_assets/main.bal (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:204)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at it.uppeee.uppeee.main._activity_create(main.java:410)
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 it.uppeee.uppeee.main.afterFirstLayout(main.java:105)
at it.uppeee.uppeee.main.access$000(main.java:17)
at it.uppeee.uppeee.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6517)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
** Activity (main) Resume **

It's probably easier than I think, but I've never faced this issue so I don't know how to solve it. Can anyone help me please?

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
click on the sync button in the files tab
 
Upvote 0
Top