Android Question New Version?

DrownedBat

Member
Licensed User
Longtime User
Hi all,
Just updated my B4A to the new version (9.80). I have been writing a program for 3 years using an older version of B4A (~4.0). I've been wanting to upgrade for a while but couldn't afford to and since it was working, I didn't see any rush. B4A goes to free and I grab 9.80. I now get a "java.io.FileNotFoundException: phmain.bal" error so it tells me it can no longer find my primary B4A Designer file "phmain.bal". I make sure it's in the Files Manager tab, folder, and check the layout file itself. No issues found. Am I missing something?
 

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

DrownedBat

Member
Licensed User
Longtime User
Here's the full error message:

B4X:
java.io.FileNotFoundException: phmain.bal
    at android.content.res.AssetManager.nativeOpenAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:796)
    at android.content.res.AssetManager.open(AssetManager.java:773)
    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 b4a.example.main._activity_create(main.java:366)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at b4a.example.main.afterFirstLayout(main.java:104)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:216)
    at android.app.ActivityThread.main(ActivityThread.java:7266)
    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)
java.io.FileNotFoundException: phmain.bal
 
Upvote 0

josejad

Expert
Licensed User
Longtime User

This is related to an old version of the build tools. Download the ready to run SDK in a new folder and configure the IDE to use it (Tools - Configure Paths).
https://www.b4x.com/search?query=ready+to+run+sdk
 
Upvote 0

DrownedBat

Member
Licensed User
Longtime User
All praise to Erel as usual; I was running android-24 instead of -28. She's back and I've got some more work to get done. Thanks all!
 
Upvote 0
Top