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]: Plugin with id 'kotlin-android' not found error for RN version 0.71.3 #194

Closed uyend closed 1 year ago

uyend commented 1 year ago

Which Platforms?

Android

Which React Native Version?

0.71.3

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

2.0.0

Repro Rate

100%

Steps To Reproduce

Example:

  1. Try building out the android app

Expected Behavior

App to be built successfully

Actual Incorrect Behavior

App unable to build due to this error:

Verbose Logs

No response

Additional Information

No response

bryanlogan commented 1 year ago

Can you add classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" on your android/build.gradle and see if that fixes the issue?

radixdev commented 1 year ago

Hi @uyend ,

Please take a look at our sample app (https://github.com/braze-inc/braze-react-native-sdk/blob/0fc74254b448d3d8ef10d37fbcd877a6b55909e4/android/build.gradle#L33) to see where to add the kotlin classpath addition @bryanlogan pointed out above. We've also updated our documentation (which should be live soon) to point out where to add this code to your build.gradle as well.

uyend commented 1 year ago

Thank you that helped!