Bug? *FIXED* Changing from debug to release project stops working

joolzg

Member
Licensed User
Longtime User
I have been writing a small project based on some libs and when running in debug everything works well.

Now if i do a release build i get


"An error has occurred in sub:main_activity_create (java line:484)
java.io.FileNotFoundException: main_activity.bal"

Now ive read up as much as i can and changed the name from 1.bal to main_activity.bal

I have done the sync

I have created a zip, checked all the files are there

I have removed the debug from the device and only pushed a release

Still NOT working!!! Can anyone help
 

joolzg

Member
Licensed User
Longtime User
I have uploaded the project direct to you as I have tried all the ideas i can find on this board but still i cannot build and deploy a release version.

None of the layouts i try to load are available and the program stops with a "file not found"

This is not a technical problem this is a failure in the deployment of a release version.
 

joolzg

Member
Licensed User
Longtime User
Here is the log output from a release version

Logger connected to: asus P01Z
--------- beginning of main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (setup) Create, isFirst = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 484)
java.io.FileNotFoundException: main_layout.bal
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:318)
at android.content.res.AssetManager.open(AssetManager.java:292)
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 anywheresoftware.b4a.samples.bluetooth.main._activity_create(main.java:484)
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 anywheresoftware.b4a.samples.bluetooth.main.afterFirstLayout(main.java:104)
at anywheresoftware.b4a.samples.bluetooth.main.access$000(main.java:17)
at anywheresoftware.b4a.samples.bluetooth.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:5255)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
java.io.FileNotFoundException: main_layout.bal
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…