Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

java.lang.NoClassDefFoundError for android/os/PersistableBundle during registering activity on Bus #139

@Den-Rimus

Description

@Den-Rimus
01-16 00:36:40.009  27061-27061/net.mobindustry.shopaholic E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.NoClassDefFoundError: android/os/PersistableBundle
            at java.lang.Class.getDeclaredMethods(Native Method)
            at java.lang.Class.getDeclaredMethods(Class.java:703)
            at com.squareup.otto.AnnotatedHandlerFinder.loadAnnotatedMethods(AnnotatedHandlerFinder.java:52)
            at com.squareup.otto.AnnotatedHandlerFinder.findAllProducers(AnnotatedHandlerFinder.java:126)
            at com.squareup.otto.HandlerFinder$1.findAllProducers(HandlerFinder.java:33)
            at com.squareup.otto.Bus.register(Bus.java:191)

I've seen this issue. But I just don't get - we get this crash on all pre21 API devices with our app - during OttoBusProvider.getInstance().register(this); in onPause().
Looking at the number of forks and start I assume that lots of people and teams are using this library - how comes they don't get the crash?

Is there any possible workaround here?

P. S.: before we tried EventBus lib from greenrobot - same error, identical stack, only package name differs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions