Closed avrabel-work closed 10 months ago
Happened to us as well. Patching node_modules/@datadog/mobile-react-native/android/build.gradle
worked.
Here's the patch:
--- a/node_modules/@datadog/mobile-react-native/android/build.gradle
+++ b/node_modules/@datadog/mobile-react-native/android/build.gradle
@@ -142,8 +142,8 @@ android {
disable 'GradleCompatible'
}
compileOptions {
- sourceCompatibility JavaVersion.VERSION_11
- targetCompatibility JavaVersion.VERSION_11
+ sourceCompatibility JavaVersion.VERSION_17
+ targetCompatibility JavaVersion.VERSION_17
}
}
@@ -210,7 +210,7 @@ unMock {
tasks.withType(Test) {
tasks.withType(KotlinCompile) {
- kotlinOptions.jvmTarget = JavaVersion.VERSION_11
+ kotlinOptions.jvmTarget = JavaVersion.VERSION_17
}
useJUnitPlatform {
Worked like a charm. Thanks @alon7!
Hi @avrabel-work and @alon7 for reaching out!
We've had reports of this issue yesterday here and we're currently working on releasing a new version supporting this.
I'll let you know once the new release is available, in the meantime using patch-package is indeed probably the best solution to unblock you.
Hi @avrabel-work @alon7,
We've released @datadog/mobile-react-native
version 2.0.4
that should fix your issue. You only need to update this package to version 2.0.4
to fix the issue.
I'll close this issue, feel free to reopen it if the problem is not fixed for you!
Thanks for taking the time for reporting an issue!
If you are having trouble sending data from the SDK but don't see any error, please reach out first through our support team.
Describe what happened Datadog was working and building fine for us in Expo SDK 49. We are in the process of upgrading our app to Expo SDK 50. The upgrade went well and our production builds are working fine, however we are not seeing any data being uploaded into Datadog. To debug the issue, we tried creating development builds using EAS. The IOS dev build built fine, but the Android build is failing with:
Steps to reproduce the issue: Creating an Android dev build on EAS with the latest expo-datadog packages.
Describe what you expected: Android dev build created successfully.
Additional context
app.config.js
eas.json
package.json
Full output of EAS dev build