Skip to content

When I build this package on Android in my app, I get an error(AGP above 8.0) #95

@S-Shuhei

Description

@S-Shuhei

Checklist

  • The issue can be reproduced in the attached sample application in the repository.
  • I have read the relevant SDK documentation and have not found a suitable solution or answer.
  • I agree to the terms within the SAP Code of Conduct.

Description

Description
When I build this package on Android in my app(AGP above 8.0), I get an error:

GigyaSDKWrapper.kt:94:35 Type mismatch: Inferred type is String? But a string was expected.

According to the official documentation, versionName may return NULL, so I think it is necessary to change the source code.

Ref:https://source.android.com/reference/tradefed/com/android/tradefed/device/PackageInfo?hl=ja#getVersionName()

Reproduction

  1. Update AGP above 8.0
  2. build app with the plugin

Additional context

No response

SDK version

1.0.15

Android/iOS

Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions