Skip to content

React native windows is causing conflicts with react-native 0.71.0 and up #11093

Closed

Description

Problem Description

It seems react-native-windows is causing some conflicts with the new react-native version 0.71.0. Removing react-native-windows solved the issue.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Cannot resolve external dependency com.facebook.flipper:flipper:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.flipper:flipper-network-plugin:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.flipper:flipper-fresco-plugin:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:react-android because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:hermes-android because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:react-native:+ because no repositories are defined.
     Required by:
         project :app > project :react-native-community_slider
         project :app > project :react-native-picker_picker

Steps To Reproduce

  1. Create a new react-native project npx react-native init RNWithWindows
  2. Install react-native-windows
  3. Try running the android app

Expected Results

The android app should build without problem.

CLI version

0.71.0

Environment

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 625.63 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 3.2.3 - ~/.nvm/versions/node/v16.18.1/bin/yarn
    npm: 5.1.0 - ~/work/personal/lottie-react-native/node_modules/.bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/matin/.rvm/gems/ruby-2.7.6/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.1.0 
    react-native: 0.71.0 => 0.71.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Target Platform Version

None

Target Device(s)

Desktop

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

Run yarn paper:android in the following project:

https://github.com/lottie-react-native/lottie-react-native/tree/chore/upgrade_examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions