Android Question [IconicFontEngine] problem in B4A 9.01.2

Discussion in 'Android Questions' started by Waldemar Lima, Jun 13, 2019.

  1. Waldemar Lima

    Waldemar Lima Active Member Licensed User

    hello !

    show this error :

    Code:
    Logger connected to:  Xiaomi Redmi 6
    --------- beginning of main
    ** 
    Activity (main) Create, isFirst = true **
    Error occurred on line: 
    31 (Main)
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:
    170)
        at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:
    209)
        at b4a.example.main._activity_create(main.java:
    381)
        at java.lang.reflect.Method.invoke(Native Method)
        at anywheresoftware.b4a.shell.Shell.runMethod(
    Shell.java:732)
        at anywheresoftware.b4a.shell.Shell.raiseEventImpl(
    Shell.java:351)
        at anywheresoftware.b4a.shell.Shell.raiseEvent(
    Shell.java:255)
        at java.lang.reflect.Method.invoke(Native Method)
        at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:
    144)
        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:
    794)
        at android.os.Handler.dispatchMessage(Handler.java:
    99)
        at android.os.Looper.loop(Looper.java:
    176)
        at android.app.ActivityThread.main(ActivityThread.java:
    6662)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:
    547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    873)
    Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:
    64)
        at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:
    162)
        ... 
    18 more
    Caused by: java.lang.RuntimeException: 
    Font asset not found fonts/fontawesome-webfont.ttf
        at android.graphics.Typeface.createFromAsset(
    Typeface.java:784)
        at de.donmanfred.IconicFontButtonWrapper._initialize(IconicFontButtonWrapper.java:
    56)
        ... 
    21 more
    ** 
    Activity (main) Resume **
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    @Waldemar Lima have you added the additional font folder in the zip file. One quick look at Manfreds fist post reminds you about the folder called 'fonts'.

    Error:
    Font asset not found fonts/fontawesome-webfont.ttf
     
  3. Waldemar Lima

    Waldemar Lima Active Member Licensed User

    here was all fonts
    Screenshot_15.png
     
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