Skip to content

TCStringDecoder base64 encoding failed on android api level <=25  #140

@af-jja

Description

@af-jja

Version
2.0.10

Module (core, cmpapi, cli, stub, or testing)
iabtcf-decoder

Error
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; at com.iabtcf.decoder.TCStringDecoder.vectorFromString(TCStringDecoder.java:37) at com.iabtcf.decoder.TCStringDecoder.decode(TCStringDecoder.java:57) at com.iabtcf.decoder.TCString.decode(TCString.java:43)

Describe with reproduction steps – What is the expected behavior?
TCString decoding failed with an exception.

On andorid api level 25 and below, java.util.Base64 is not available. it should be replaced with android.util.Base64
see: https://stackoverflow.com/questions/48697766/android-studio-noclassdeffounderror-with-java-util-base64

is it possible to support an android/kotlin lib on maven as well?

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