Android Question Understanding error msg.

nypaulie

Active Member
Licensed User
Longtime User
I've run B4A w/VBox successfully before but now I get an error msg when I try to open the program in Android (see below). I do not get this error when I install the exact program running B4A under Win-10 (no VBox). Note: I am having no problems using Bridge to compile and run.
 

Attachments

  • Error.png
    Error.png
    56.6 KB · Views: 287

nypaulie

Active Member
Licensed User
Longtime User
You should find the error message in the logs and post it.
There is no error msg in the logs pertaining to this. I can "Compile & Run" successfully. It's only when I click on the icon on my Android tablet's screen that I get the error popup I attached above.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Connect your device running usb debugging and check the log.

Alternatively enable Bridgelogging in Release mode. Install the app (Compile in RELEASE mode!) and then check the log.

In fact you need to be able to SEE the log.

As an alternative you could implement CrashLytics and then wait for the crashlog in firebase console.
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
Connect your device running usb debugging and check the log.

Alternatively enable Bridgelogging in Release mode. Install the app (Compile in RELEASE mode!) and then check the log.

In fact you need to be able to SEE the log.

As an alternative you could implement CrashLytics and then wait for the crashlog in firebase console.
I run via Bridge not USB so how would I enable Bridgelogging?
[Added later] I think I found how using the tutorial. Sorry for not checking before posting.
[Added later] Yes, I see how - you add "#BridgeLogger: True" to Main module. I will try that now and report. Thanks!
 
Last edited:
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
I run via Bridge not USB so how would I enable Bridgelogging?
[Added later] I think I found how using the tutorial. Sorry for not checking before posting.
[Added later] Yes, I see how - you add "#BridgeLogger: True" to Main module. I will try that now and report. Thanks!
Connect your device running usb debugging and check the log.

Alternatively enable Bridgelogging in Release mode. Install the app (Compile in RELEASE mode!) and then check the log.

In fact you need to be able to SEE the log.

As an alternative you could implement CrashLytics and then wait for the crashlog in firebase console.
OK, so I got the log file showing the error. I will add the screenshot. I also will add the shot showing the "missing" file main.bal in my Files folder.Log.png main.bal-in-Files.png
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
Post error as TEXT instead of Images
--------- beginning of system
--------- beginning of main
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 381)
java.io.FileNotFoundException: main.bal
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:313)
at android.content.res.AssetManager.open(AssetManager.java:287)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at com.tavno2.logmyworkout.main._activity_create(main.java:381)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at com.tavno2.logmyworkout.main.afterFirstLayout(main.java:104)
at com.tavno2.logmyworkout.main.access$000(main.java:17)
at com.tavno2.logmyworkout.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
java.io.FileNotFoundException: main.bal
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
Based on the error i see that the main.bal layoutfile seems to be missing.
It is listed in the files tab in the IDE? eventually you need to sync the folder?
Yes it is listed in the files tab so I highlighted it and pressed sync and ran it again with the same error log. Can you explain what sync the "folder" means please? How would I check that?
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
you need to try and find out. I can´t answer this. I do not have such a device.
I think my problem is trying to run B4A using VirtualBox. I just tried Compile & Run on 2 other programs I wrote and get similar errors, the main.bal (or whatever the initial screen is) are not "found". I guess I will have to dualboot into Windoze to do this. Bummer, it is a time waster. But Thank You for helping!
 
Upvote 0

nypaulie

Active Member
Licensed User
Longtime User
my link? What link? I did not post any in this thread!?

Learn to work with the IDE! Do you HAVE used the SYNC Button in the files tab?
Sorry, someone else posted a link - i answer you instead of him. Yes to the sync button but I think it is VBox use that's my monster.
 
Upvote 0
Top