Build failed with an exception rn@0.71.0-rc.2
See original GitHub issueDescription
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ‘:app’.
Illegal character in authority at index 7: file://C:\Users\Sawai\Desktop\myapp\node_modules\react-native/android
Version
0.71.0-rc.2
Output of npx react-native info
info Fetching system and libraries information… System: OS: Windows 10 10.0.19045 CPU: (12) x64 Intel® Core™ i5-10400 CPU @ 2.90GHz Memory: 5.23 GB / 15.75 GB Binaries: Node: 14.16.1 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 4.1.0.0 AI-201.8743.12.41.7199119 Visual Studio: Not Found Languages: Java: 17.0.5 - C:\Users\Sawai\Documents\jdk-17.0.5\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.0-rc.2 => 0.71.0-rc.2 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
Create a new react native project with 0.71.0-rc.2 version or upgrade to the existing.
Snack, code example, screenshot, or link to a repository
I have tried in multile windows system.
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (8 by maintainers)
@s-jain-cognam RC3 has just been released which should fix the path issue. @shivenmian can you cross check and let me know if we need further Windows fix to be included in RC4?
@cortinico yep, I had tested RC3 last week and things work fine for me too, so your PR is good. I had a look at the actual fix you made in
DependencyUtils.kt
andtoURI()
is better than the slash replacement I was trying. We can also probably close #34878 since that is similar.