question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failed with an exception rn@0.71.0-rc.2

See original GitHub issue

Description

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:closed
  • Created 10 months ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Dec 1, 2022

@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?

0reactions
shivenmiancommented, Dec 5, 2022

@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 and toURI() is better than the slash replacement I was trying. We can also probably close #34878 since that is similar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failed with an exception rn@0.71.0-rc.2 - GitHub
A framework for building native applications using React - Build failed with an exception rn@0.71.0-rc.2 · facebook/react-native@17f221c.
Read more >
How to fix Build failed with an exception - Stack Overflow
Try to replace your android/build.gradle with this i.e in your project level gradle with this buildscript { repositories { jcenter() } ...
Read more >
Gradle build error. Build failed with an exception - Help/Discuss
I get this error when I try to build my game for Android in Unity. How do I get rid of that? FAILURE:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found