Skip to content

androidx.credentials:credentials:1.5.0 not fallback for Unity #55

@ArnauKokoro

Description

@ArnauKokoro

Hi,

Updating Firebase SDK found out a problem using androidx.credentials:credentials:1.5.0 instead of androidx.credentials:credentials:1.2.2.

Android < 14 has no credentials library native on the system, that causes a NoClassDefFoundError if androidx.credentials:credentials:1.5.0 try to call the native androidx.credentials and has no fallback (known by Unity) for it.

ChatGPT adds:

1.5.0 -> if (Build.VERSION.SDK_INT) is the check now and that is the cause on Unity because class loader loads the whole class.
1.2.2 -> the check was a try/catch. It works!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions