I spent quite some time trying to figure out how to get the datadog react native sdk up and running in a managed expo app (Using EAS build, of course).
Unfortunately, it would seem like there’s an incompatibilty issue with android complieSdk version.
dd-sdk v1.0.0-rc5 requires sdk version 31+ and gradle 7.
The build is failing in the gradlew job with the following error:
> Task :expo-web-browser:writeDebugAarMetadata > Task :react-native-safe-area-context:writeDebugAarMetadata > Task :react-native-screens:writeDebugAarMetadata > Task :app:checkDebugAarMetadata FAILED [stderr] FAILURE: Build failed with an exception. [stderr] * What went wrong: [stderr] Execution failed for task ':app:checkDebugAarMetadata'. [stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction [stderr] > The minCompileSdk (31) specified in a [stderr] dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) [stderr] is greater than this module's compileSdkVersion (android-30). [stderr] Dependency: androidx.work:work-runtime:2.7.0. [stderr] AAR metadata file: /home/expo/.gradle/caches/transforms-3/ffee51ff6db99f884b0e8a6a5d65a88b/transformed/work-runtime-2.7.0/META-INF/com/android/build/gradle/aar-metadata.properties. [stderr] * Try: [stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. [stderr] * Get more help at https://help.gradle.org [stderr] BUILD FAILED in 1m 34s Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 27 actionable tasks: 27 executed
Also tried downgrading to sdk v1.0.0-rc4 and issue persists.
Is there any workaround to this?