Skip to content

RN 0.82.1 Task :react-native-async-storage:generateCodegenArtifactsFromSchema FAILED #1225

@djalondon

Description

@djalondon

What happened?

Expected a build to be successful and show the app in an Android Simulator

"Task :react-native-async-storage:generateCodegenArtifactsFromSchema FAILED"

  • What went wrong:
    A problem was found with the configuration of task ':react-native-async-storage:generateCodegenArtifactsFromSchema' (type 'GenerateCodegenArtifactsTask').
    • Gradle detected a problem with the following location: '/Users/dja_dan/DevApps/Tavistock_Nov2025/tavistockbetweenus/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/schema.json'.

      Reason: Task ':react-native-async-storage:generateCodegenArtifactsFromSchema' uses this output of task ':react-native-async-storage_async-storage: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 ':react-native-async-storage_async-storage:generateCodegenSchemaFromJavaScript' as an input of ':react-native-async-storage:generateCodegenArtifactsFromSchema'.
      2. Declare an explicit dependency on ':react-native-async-storage_async-storage:generateCodegenSchemaFromJavaScript' from ':react-native-async-storage:generateCodegenArtifactsFromSchema' using Task#dependsOn.
      3. Declare an explicit dependency on ':react-native-async-storage_async-storage:generateCodegenSchemaFromJavaScript' from ':react-native-async-storage:generateCodegenArtifactsFromSchema' using Task#mustRunAfter.

Version

2.2.0

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
  OS: macOS 15.7.2
  CPU: (8) x64 Apple M1
  Memory: 64.29 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.11.0
    path: /Users/dja_dan/.nvm/versions/node/v24.11.0/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 2.15.12
    path: /Users/dja_dan/DevApps/tbu_app/node_modules/.bin/npm
  Watchman:
    version: 2025.03.10.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/lib/ruby/gems/3.4.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.1
      - iOS 26.1
      - macOS 26.1
      - tvOS 26.1
      - visionOS 26.1
      - watchOS 26.1
  Android SDK:
    API Levels:
      - "28"
      - "29"
      - "33"
      - "34"
      - "35"
      - "36"
      - "36"
      - "36"
    Build Tools:
      - 30.0.2
      - 30.0.3
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
      - 36.1.0
    System Images:
      - android-29 | Intel x86_64 Atom
      - android-29 | Google APIs Intel x86 Atom
      - android-33 | Google Play Intel x86_64 Atom
      - android-33 | Google APIs ATD Intel x86_64 Atom
      - android-36 | Google Play ARM 64 v8a
      - android-UpsideDownCakePrivacySandbox | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2513.14007798
  Xcode:
    version: 26.1.1/17B100
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.14
    path: /usr/bin/javac
  Ruby:
    version: 3.4.2
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.2
    wanted: ^20.0.2
  react:
    installed: 19.1.1
    wanted: 19.1.1
  react-native:
    installed: 0.82.1
    wanted: 0.82.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to Reproduce

I ran
./gradlew --stop
./gradlew clean
and got BUILD SUCCESSFUL in 12s

npx react-native run-android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions