TapResearch / react-native-tapresearch

A react native plugin for TapResearch
1 stars 2 forks source link

[Bug] Could not invoke RNTapResearch.initWithApiToken #11

Closed doctorrokter closed 2 years ago

doctorrokter commented 2 years ago

Env

Error

The app crash occured when the app tried to initialize TapR SDK:

image image image

So, the main reason as I assume is: NoSuchFieldError: No static field BASE_OS of type Ljava/lang/String; in class Landroid/os/Build$VERSION; or its superclasses (declaration of 'android.os.Build$VERSION' appears in /system/framework/framework.jar)

@Jjastiny It may relate to a pretty old Android version, maybe SDK utilizes some API which doesn't exist in older Androids. I cannot reproduce on my Android 9 and Android 11 devices.

Jjastiny commented 2 years ago

Yes we are using API that's available after Android 6 Marshmallow. Our lint checks missed the api requirement check and ended up missing the flag for this. Although it was a mistake, we are actually now going to move forward to dropping support for Android 5 from our next release

doctorrokter commented 2 years ago

Yes we are using API that's available after Android 6 Marshmallow. Our lint checks missed the api requirement check and ended up missing the flag for this. Although it was a mistake, we are actually now going to move forward to dropping support for Android 5 from our next release

Oh, got it. That makes sense now. Thanks for a quick response!