Android Question File not found error after upgrading to 9.30 DEBUG ok RELEASE mode fails

mrumball

Member
Licensed User
Longtime User
Following upgrading to 9.30 I have a problem where I cannot run any B4a programs in release mode, Debug mode runs fine.

I have made a simple project with a single layout (1.bal) which appears in the files tab and can be opened with the designer, It has a single button.
this also fails, when I release via B4A bridge the app fails to show the layout and the log reports:-

** Activity (main) Create, isFirst = true **
main_activity_create (java line: 342)
java.io.FileNotFoundException: 1.bal
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:374)
at android.content.res.AssetManager.open(AssetManager.java:348)
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:342)
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:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6528)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

B4A Version: 9.30
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.05s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(Android Support Library)
Generating R file. (0.00s)
Compiling generated Java code. (0.00s)
Convert byte code - optimized dex. (0.23s)
Packaging files. (0.15s)
Copying libraries resources (0.00s)
Signing package file (debug key). (0.40s)
ZipAlign file. (0.02s)
Installing file to device. (0.03s)
Installing with B4A-Bridge.
Completed successfully.

I have upgraded jdk to jdk.8.0_212

and Android SDK 28, still not working..!
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top