You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Android] Task ':sentry_react-native:generateCodegenArtifactsFromSchema' uses this output of task ':@sentry_react-native:generateCodegenSchemaFromJavaScript' without declaring an explicit or implicit dependency.
#3585
Closed
5 of 11 tasks
skinnynpale opened this issue
Feb 9, 2024
· 2 comments
Steps to reproduce: ./gradlew assembleRelease or ./gradlew generateCodegenArtifactsFromSchema
Actual result:
> Task :sentry_react-native:generateCodegenArtifactsFromSchema FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':sentry_react-native:generateCodegenArtifactsFromSchema' (type 'GenerateCodegenArtifactsTask').
- Gradle detected a problem with the following location: '/Users/skinnynpale/work_projects/mobile/node_modules/@sentry/react-native/android/build/generated/source/codegen/schema.json'.
Reason: Task ':sentry_react-native:generateCodegenArtifactsFromSchema' uses this output of task ':@sentry_react-native:generateCodegenSchemaFromJavaScript' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':@sentry_react-native:generateCodegenSchemaFromJavaScript' as an input of ':sentry_react-native:generateCodegenArtifactsFromSchema'.
2. Declare an explicit dependency on ':@sentry_react-native:generateCodegenSchemaFromJavaScript' from ':sentry_react-native:generateCodegenArtifactsFromSchema' using Task#dependsOn.
3. Declare an explicit dependency on ':@sentry_react-native:generateCodegenSchemaFromJavaScript' from ':sentry_react-native:generateCodegenArtifactsFromSchema' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 5s
100 actionable tasks: 2 executed, 98 up-to-date
Expected result:
[Expected result]
The text was updated successfully, but these errors were encountered:
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.18.0
react-native
version: 0.73.3Are you using Expo?
Are you using sentry.io or on-premise?
I have the following issue:
[Description]
Steps to reproduce:
./gradlew assembleRelease or ./gradlew generateCodegenArtifactsFromSchema
Actual result:
Expected result:
[Expected result]
The text was updated successfully, but these errors were encountered: