Skip to content

[Android] Can not build and start App with React-Native 0.66 / Transforming error during the build #712

Description

@tscharke

What happened?

Running react-native run-android ends with this errors:

Execution failed for task ':react-native-async-storage_async-storage:javaPreCompileDebug'.
> Could not resolve all files for configuration ':react-native-async-storage_async-storage:debugCompileClasspath'.
   > Failed to transform react-native-0.66.3.aar (com.facebook.react:react-native:0.66.3) to match attributes {artifactType=android-classes, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Execution failed for AarToClassTransform: /.gradle/caches/transforms-3/fe16f2a60697f01322c3b4b0b359c91d/transformed/jetified-react-native-0.66.3.aar.
         > /.gradle/caches/transforms-3/fe16f2a60697f01322c3b4b0b359c91d/transformed/jetified-react-native-0.66.3.aar (No such file or directory)
   > Failed to transform fbcore-2.5.0.aar (com.facebook.fresco:fbcore:2.5.0) to match attributes {artifactType=android-classes, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Execution failed for AarToClassTransform: /.gradle/caches/transforms-3/f7f583640c19851b655d32a16b2cee53/transformed/jetified-fbcore-2.5.0.aar.
         > /.gradle/caches/transforms-3/f7f583640c19851b655d32a16b2cee53/transformed/jetified-fbcore-2.5.0.aar (No such file or directory)

Have tried…

  • to clean and delete the caches,
  • update to the latest version 1.15.11
  • Set compileSdkVersion = 30 and targetSdkVersion = 30
    …unfortunately without success🤷‍♂️

Version

1.15.11

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
    Memory: 471.96 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.4.0 - ~/.nvm/versions/node/v16.4.0/bin/node
    Yarn: 1.22.17 - ~/node_modules/.bin/yarn
    npm: 7.19.0 - ~/.nvm/versions/node/v16.4.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - ~/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK:
      API Levels: 16, 23, 24, 25, 26, 27, 28, 29, 30
      Build Tools: 28.0.3, 29.0.0, 29.0.2
      System Images: android-16 | Intel x86 Atom, android-24 | Intel x86 Atom_64, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6953283
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_60 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.3 => 0.66.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

Described above.

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