1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Unable to create service b4a.example.starter

Discussion in 'Android Questions' started by Modern_Digital, May 13, 2019.

  1. Modern_Digital

    Modern_Digital Member Licensed User

    Hi,

    When I try to compile my app i got this error :

    PHP:
    Logger connected to:  HTC HTC Desire 728 dual sim
    --------- beginning of main
    Copying updated assets files 
    (4)
    java.lang.RuntimeExceptionUnable to create service b4a.example.starterjava.lang.RuntimeExceptionjava.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (No such file or directory)
        
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3159)
        
    at android.app.ActivityThread.access$1800(ActivityThread.java:178)
        
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1640)
        
    at android.os.Handler.dispatchMessage(Handler.java:111)
        
    at android.os.Looper.loop(Looper.java:214)
        
    at android.app.ActivityThread.main(ActivityThread.java:6102)
        
    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:1028)
        
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
    Caused byjava.lang.RuntimeExceptionjava.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (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 b4a.example.starter.onCreate(starter.java:34)
        
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3141)
        ... 
    9 more
    Caused by
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (No such file or directory)
        
    at libcore.io.IoBridge.open(IoBridge.java:496)
        
    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.ErrnoExceptionopen failedENOENT (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:482)
        ... 
    16 more
    Copying updated assets files 
    (4)
    java.lang.RuntimeExceptionUnable to create service b4a.example.starterjava.lang.RuntimeExceptionjava.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (No such file or directory)
        
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3159)
        
    at android.app.ActivityThread.access$1800(ActivityThread.java:178)
        
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1640)
        
    at android.os.Handler.dispatchMessage(Handler.java:111)
        
    at android.os.Looper.loop(Looper.java:214)
        
    at android.app.ActivityThread.main(ActivityThread.java:6102)
        
    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:1028)
        
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
    Caused byjava.lang.RuntimeExceptionjava.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (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 b4a.example.starter.onCreate(starter.java:34)
        
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3141)
        ... 
    9 more
    Caused by
    java.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/virtual_assets/frmtasbeeh.balopen failedENOENT (No such file or directory)
        
    at libcore.io.IoBridge.open(IoBridge.java:496)
        
    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.ErrnoExceptionopen failedENOENT (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:482)
        ... 
    16 more
    Note :
    My B4A Project Dtails :
    - My B4A Version = 8.50 .
    - My Computer OS = XP SP3 .
    - MinSDKVersion = 16, I tested From 16 To 23, I got same error .
    - TargetSDKVersion = 16, I tested From 16 To 23, I got same error .
    - AndroidSDKVersion, API Level = 16, I tested From 16 To 23, I got same error .
    - Java JDK Version = 8u40 .
    - In My Project Just One Activity And One Layout .
    - My Android Version in my Real Device = 5.1 .

    Thank you.
     
    Last edited: May 13, 2019
  2. José J. Aguilar

    José J. Aguilar Well-Known Member Licensed User

    Erel and Modern_Digital like this.
  3. DonManfred

    DonManfred Expert Licensed User

  4. Modern_Digital

    Modern_Digital Member Licensed User

    José J. Aguilar likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice