Hello,
New to using B4A and have created my first app. I'm using B4A-Bridge on my Android device and when I compile/run in Debug, the app works fine.
However when I change to Release and do the same, I get an error that my app has stopped (on the device) and this in the logger:
Logger connected to: ZTE ZTE A2017U
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Readable:true
Writeable:true
main_activity_create (java line: 403)
java.io.FileNotFoundException: images
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:353)
at android.content.res.AssetManager.open(AssetManager.java:327)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:205)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:338)
at b4a.TestApp.main._activity_create(main.java:403)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at b4a.TestApp.main.afterFirstLayout(main.java:104)
at b4a.TestApp.main.access$000(main.java:17)
at b4a.TestApp.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6236)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
I've tried a few things -- reinstall Android SDK and re-download with the SDK manager, checked JDK is current (jdk1.8.0_161), etc.
Any suggestions are appreciated, and my apologies in advance if I'm missed something really simple.
New to using B4A and have created my first app. I'm using B4A-Bridge on my Android device and when I compile/run in Debug, the app works fine.
However when I change to Release and do the same, I get an error that my app has stopped (on the device) and this in the logger:
Logger connected to: ZTE ZTE A2017U
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Readable:true
Writeable:true
main_activity_create (java line: 403)
java.io.FileNotFoundException: images
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:353)
at android.content.res.AssetManager.open(AssetManager.java:327)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:205)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:338)
at b4a.TestApp.main._activity_create(main.java:403)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at b4a.TestApp.main.afterFirstLayout(main.java:104)
at b4a.TestApp.main.access$000(main.java:17)
at b4a.TestApp.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6236)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
I've tried a few things -- reinstall Android SDK and re-download with the SDK manager, checked JDK is current (jdk1.8.0_161), etc.
Any suggestions are appreciated, and my apologies in advance if I'm missed something really simple.