Android Question Font asset not found fonts/Roboto-Medium.ttf

Chris Guanzon

Active Member
Licensed User
Longtime User
Hello everyone! I am having an error after updating to B4A v10.7. this is the error:

B4X:
java.lang.RuntimeException: Font asset not found fonts/Roboto-Medium.ttf
    at android.graphics.Typeface.createFromAsset(Typeface.java:206)
    at com.wdullaer.materialdatetimepicker.TypefaceHelper.get(TypefaceHelper.java:31)
    at com.wdullaer.materialdatetimepicker.date.DatePickerDialog.onCreateView(DatePickerDialog.java:338)
    at android.app.Fragment.performCreateView(Fragment.java:2352)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
    at android.app.BackStackRecord.run(BackStackRecord.java:815)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
    at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6251)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

This error occurred when I am showing the MaterialDateTimePicker created by sir @DonManfred. What could possibly the reason for this error and how to fix it?
 

jahswant

Well-Known Member
Licensed User
Longtime User
Switch to AnotherDatePicker as @DonManfred advice not to use this library any more as he can't maintain it. It's an asset subfolder issue assets/fonts.
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Hello everyone! I am having an error after updating to B4A v10.7. this is the error:

B4X:
java.lang.RuntimeException: Font asset not found fonts/Roboto-Medium.ttf
    at android.graphics.Typeface.createFromAsset(Typeface.java:206)
    at com.wdullaer.materialdatetimepicker.TypefaceHelper.get(TypefaceHelper.java:31)
    at com.wdullaer.materialdatetimepicker.date.DatePickerDialog.onCreateView(DatePickerDialog.java:338)
    at android.app.Fragment.performCreateView(Fragment.java:2352)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
    at android.app.BackStackRecord.run(BackStackRecord.java:815)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
    at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6251)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

This error occurred when I am showing the MaterialDateTimePicker created by sir @DonManfred. What could possibly the reason for this error and how to fix it?
Look this: https://www.b4x.com/android/forum/threads/materialdatetimepicker-with-b4a-10-7-error.128786/
 
Upvote 0

fbritop

Active Member
Licensed User
Longtime User
Hello everyone! I am having an error after updating to B4A v10.7. this is the error:

B4X:
java.lang.RuntimeException: Font asset not found fonts/Roboto-Medium.ttf
    at android.graphics.Typeface.createFromAsset(Typeface.java:206)
    at com.wdullaer.materialdatetimepicker.TypefaceHelper.get(TypefaceHelper.java:31)
    at com.wdullaer.materialdatetimepicker.date.DatePickerDialog.onCreateView(DatePickerDialog.java:338)
    at android.app.Fragment.performCreateView(Fragment.java:2352)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
    at android.app.BackStackRecord.run(BackStackRecord.java:815)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
    at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6251)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

This error occurred when I am showing the MaterialDateTimePicker created by sir @DonManfred. What could possibly the reason for this error and how to fix it?

 
Upvote 0
Top