-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle issue after upgrading to React Native 0.71.7 #25
Comments
Hi @j3lev, sorry for the late response, I've been out on vacation the past two weeks. Thanks so much for your detailed issue! I'll get to this ASAP and update this issue when a fix has been released. |
@j3lev Hi I was unable to reproduce the specific error you encountered with a sample app, so I published a beta version with the proposed fix. Before I publish the actual release, can you double check this version works for you without modifying the build.gradle file in the node_modules? Beta version is |
@bgiori Hmm I'm still seeing issues. So you weren't able to reproduce this against a React Native 0.71.7 project? I'm seeing the following error when running a
|
@bgiori - Try updating the build tools as well (which are required for the RN upgrade) - as well as the gradle wrapper file (e.g. - take a look at the other amplitude RN project @ https://github.com/amplitude/Amplitude-ReactNative/blob/main/example/android/gradle/wrapper/gradle-wrapper.properties#L3)
|
If you take a look at the Datadog React Native project, they've fixed the issue on there end with these changes.
|
Hey there, I've been updating our app to the latest stable RN version 0.71.7 and the new Kotlin version doesn't play nicely with this library and throws the following error:
Our solution was to patch the library's
build.gradle
the following way:This fixed our issue however patching
node_modules
is definitely sub-optimal. The library should be updated to support the latest stable React Native versions. A possible fix could be implemented similarly to how DataDog defensively initializes their kotlin version:Thanks!
The text was updated successfully, but these errors were encountered: