Skip to content

Intermittent Android Crashing Events #10239

@SeanKelly369

Description

@SeanKelly369

Issue Description

Using nativescript/core alpha, team members are reporting the following errors on Android 12 and 13 devices. Both are a Samsung Galaxy, A90 and A13. ->

Error: java.lang.NoSuchMethodError: no non-static method "Lcom/telerik/android/primitives/widget/sidedrawer/RadSideDrawer;.setMainContent(Ljava/lang/String;)Ljava/io/File;"

Error: ClassNotFoundException when unmarshalling: androidx.core.widget.NestedScrollView$SavedState

Error: Unable to start activity ComponentInfo{com.$$.$$/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
Error: java.lang.NoSuchMethodError: no non-static method "Landroidx/appcompat/app/AppCompatActivity;.setContentView(Ljava/lang/String;)Ljava/io/File;

The onCreate failed occurs on an Android 9 moto g6 phone too.

Curiously, on a Realme GT Neo2, it has yet to crash at all when running on alpha

Reproduction

NoSuchMethodError occurs when freshly install the app, delete the old version if it exists and open the app. Twice when attempting to start the app will crash. On the 3rd time opening it runs fine.

To trigger the other errors, start the app, let everything load and then force close. Repeat these steps until the app crashes. Another time the error occurs is when it is left idle and then restarted. At times it crashes and attempts to restart, but gets stuck on the loading screen.

Relevant log output (if applicable)

Error: java.lang.NoSuchMethodError: no non-static method "Lcom/telerik/android/primitives/widget/sidedrawer/RadSideDrawer;.setMainContent(Ljava/lang/String;)Ljava/io/File;"

Error: ClassNotFoundException when unmarshalling: androidx.core.widget.NestedScrollView$SavedState

Error: Unable to start activity ComponentInfo{com.$$.$$/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
Error: java.lang.NoSuchMethodError: no non-static method "Landroidx/appcompat/app/AppCompatActivity;.setContentView(Ljava/lang/String;)Ljava/io/File;

Environment

No response

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions