Android Question QRCodeReadView new release

Dey

Active Member
Licensed User
Longtime User
Hi everyone
tried this the library
https://www.b4x.com/android/forum/threads/qrcodereaderview-new-release.82265/#content
i get this android 5.1 error
B4X:
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
    at libcore.io.Posix.open(Native Method)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
    at libcore.io.IoBridge.open(IoBridge.java:442)
    ... 16 more
Copying updated assets files (1)
java.lang.RuntimeException: Unable to create service JHS.NewQRCodeReaderView.starter: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/JHS.NewQRCodeReaderView/files/virtual_assets/main.bal: open failed: ENOENT (No such file or directory)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2771)
    at android.app.ActivityThread.access$1800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5254)
    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:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/JHS.NewQRCodeReaderView/files/virtual_assets/main.bal: open failed: ENOENT (No such file or directory)
    at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:169)
    at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
    at JHS.NewQRCodeReaderView.starter.onCreate(starter.java:34)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
    ... 9 more
Caused by: java.io.FileNotFoundException: /storage/emulated/0/Android/data/JHS.NewQRCodeReaderView/files/virtual_assets/main.bal: open failed: ENOENT (No such file or directory)
    at libcore.io.IoBridge.open(IoBridge.java:456)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
    at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:448)
    at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:156)
    ... 13 more
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
    at libcore.io.Posix.open(Native Method)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
    at libcore.io.IoBridge.open(IoBridge.java:442)
    ... 16 more

Thanks for help
 

Dey

Active Member
Licensed User
Longtime User
It is not related to the library. Seems like it failed to send the files. Try to uninstall the app from the device, clean the project (Ctrl + P) and run again.

If it doesn't help you can disable the virtual assets folder feature:
B4X:
#DebuggerForceStandardAssets: true

Thank you,
solved with
#DebuggerForceStandardAssets: true
 
Upvote 0
Top