Skip to content

Android 7 - Base64 NoClassDefFoundError #42

@TobiasReich

Description

@TobiasReich

I guess that is an issue with the Java version not being as modern as it should but when I try to use it in my Android App (for Android 7, API Level 24) the app crashes.

The call:

JWT.getDecoder().decode(token, verifier)

is trying the to execute the following line:

Header header = Mapper.deserialize(base64Decode(parts[0]), Header.class);

Which fails because the base64 decoder is not fund. On newer Android Versions this works so I assume the library is just not compatible. Any specifications regarding that? I couldn't find anything. Or am I just doing it wrong?

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