Open compwron opened 1 month ago
Hi @compwron, my apologies for the long wait!
At a first glance it looks like a conflict with Android dependencies. Could you please share your gradle dependencies here for me to take a look at them?
It would also help to copy and paste the output of ./gradlew app:dependencies
, to have a detailed overview of your dependency tree.
Hi @compwron, my apologies for the long wait!
At a first glance it looks like a conflict with Android dependencies. Could you please share your gradle dependencies here for me to take a look at them?
It would also help to copy and paste the output of
./gradlew app:dependencies
, to have a detailed overview of your dependency tree.
Thanks for the reply! My team upgraded react-native to 0.75.4
and stopped having this error, so it's definitely a conflict of some kind. Here is the build.gradle
that produces the error:
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 24
targetSdkVersion = 34
kotlinVersion = "1.8.21" // https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/setup/reactnative/
compileSdkVersion = 34
androidXAnnotation = "1.1.0"
androidXBrowser = "1.0.0"
supportLibVersion = "28.0.0"
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath('com.android.tools.build:gradle:7.4.2')
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.gms:google-services:4.4.2")
classpath("io.sentry:sentry-android-gradle-plugin:4.1.1")
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
// jitpack is how we import dependency from github: 'com.github.KeepSafe:ReLinker:1.4.3'
maven { url 'https://www.jitpack.io' }
}
}
}
app:dependencies https://gist.github.com/compwron/db2136916123a8e996f0baeb1171b831
Stack trace
As recorded by attached Flipper (0.269.0)
Built by:
Reproduction steps
I followed https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/setup/reactnative/#setup
Volume
100
Affected SDK versions
2.4.3
Latest working SDK version
none, and also there's a typo in this question "where the crash did manifest itself?"
Does the crash manifest in the latest SDK version?
Yes
React Native Version
0.71.19
Package.json Contents
iOS Setup
n/a
Android Setup
Device Information
all android, primary testing on Samsung A15
Other relevant information
No response