Closed ghost closed 2 years ago
Hi @davydspotnana thank you for choosing Amplitude. Since react-native@0.70 is fairly new, we have not had the time to test it against this version. I'll put in a request to the team to look into this further. To set better expectations, Amplitude rolled out a new Analytics SDK for React Native a couple months back, which we'll provide better support moving forward.
@kevinpagtakhan Could you please add a warning so people who use rnx-dep-check
will know that is better to use alternative library
Hi @davydspotnana ,
I built a brand new rn example with npx react-native init AwesomeProject --version 0.70.3
and install the amplitude library the same as you. "@amplitude/react-native": "^2.16.0".
I'm thinking that issue might be caused by the Gradle and android Gradle plugin compatibility problem between your react-native project with @amplitude/react-native. Can you also share what's your Gradle and android Gradle plugin version?
Provide all the versions on my worked example as a reference: "@amplitude/react-native": "^2.16.0", "react-native": "0.70.3", Android Gradle Plugin: "7.2.1" Gradle: "7.5.1"
How can I find these settings above ? @yuhao900914
@retyui In the Android Studio, go to File > Project Structure > Project.
the same (
@yuhao900914
@retyui I created a repo for my worked example. Can you take look if that helps or run on your local to see if the build can pass?
success:
> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Pixel_API_30(AVD) - 11' for :app:debug
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 51s
55 actionable tasks: 55 executed
Then I think that means it's not amplitude's issue itself. It might be some integration issue on your application.
I can't build Android: