braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

[Bug]: Can't run app with Android #269

Closed vuongnguyenthanh-agilityio closed 1 month ago

vuongnguyenthanh-agilityio commented 1 month ago

Which Platforms?

Android

Which React Native Version?

0.73.6

Which @braze/react-native-sdk SDK version?

12.2.0

Repro Rate

100% og the time

Steps To Reproduce

Example:

  1. import Braze from "@braze/react-native-sdk".
  2. Braze.changeUser("id")
  3. Run the app.

Expected Behavior

Build Android app suceess

Actual Incorrect Behavior

Build Android app failed

Verbose Logs

Class 'com.braze.ui.inappmessage.BrazeInAppMessageManager.Companion' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
The class is loaded from /Users/vuongnguyen/.gradle/caches/transforms-3/de8802ef96b98b2a6022a08a83eace76/transformed/jetified-android-sdk-ui-33.0.0-api.jar!/com/braze/ui/inappmessage/BrazeInAppMessageManager$Companion.class

Additional Information

No response

radixdev commented 1 month ago

Hi @vuongnguyenthanh-agilityio ,

  1. Are you calling implementation 'com.braze:android-sdk-ui:+' anywhere in your build.gradle ?
  2. Can you provide your app's build.gradle file?
vuongnguyenthanh-agilityio commented 1 month ago

@radixdev Yes, you are right. I updated to implementation "com.braze:android-sdk-ui:31.1.0" and it worked well. Thanks so much!