Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Android: App crash on Android version ≤ 8 when using FormattedString #10702

Closed
@asharghi

Description

@asharghi

Issue Description

App crashes on older devices because of <FormattedString>

Reproduction

Create a new app, use the <FormattedString> and run it on older Android device. I tested with Android 8.

Relevant log output (if applicable)

Error: Calling js method onCreateView failed
Error: java.lang.NoSuchMethodError: No direct method <init>(Landroid/graphics/Typeface;)V in class Landroid/text/style/TypefaceSpan; or its super classes (declaration of 'android.text.style.TypefaceSpan'

Environment

⚠ Update available for component nativescript. Your current version is 8.8.2 and the latest available version is 8.8.3.
⚠ Update available for component @nativescript/core. Your current version is 8.9.0-next-02-20-2025-13443308496 and the latest available version is 8.8.6.
✔ Component @nativescript/ios has 8.8.2 version and is up to date.
✔ Component @nativescript/android has 8.8.6 version and is up to date.

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions