-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Cannot launch "Debug Android" (error code 303) #1666
Comments
Hi @Elias-Graf and thanks for reaching us. According to your system environment information, it seems that there are no Node.js, Android SDK and |
I wouldn't trust this doctor tool if it can't even run This might be interesting as well: ❯ which node
/snap/bin/node
❯ which npm
/usr/local/bin/npm
❯ which npx
/usr/local/bin/npx
Yeah, I have that inside a
Uh, sure, I've read through it and added the following "missing" configuration
to my I've also installed the android Q SDK. Is there more configuration I'm missing? (It seems weird that
I actuall don't remember, so here is both 😉 System terminal emulator:
Integrated terminal:
System:
OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 12.80 GB / 31.33 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Managers:
Apt: 2.2.4 - /usr/bin/apt
Utilities:
Make: 4.3
GCC: 10.3.0
Git: 2.30.2
FFmpeg: 4.3.2 - /usr/bin/ffmpeg
Virtualization:
Docker: 20.10.8 - /usr/bin/docker
SDKs:
Android SDK:
API Levels: 29, 30
Build Tools: 29.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom
IDEs:
Nano: 5.4
Languages:
Bash: 5.1.4 - /usr/bin/bash
Java: 1.8.0_292
Perl: 5.32.1 - /usr/bin/perl
Python3: 3.9.5
Databases:
MySQL: 0.21.04.3 - /usr/bin/mysql
SQLite: 3.32.2 - /home/elias/Android/Sdk/platform-tools/sqlite3 In both cases the command was executed inside the projects working directory :) |
@Elias-Graf Thanks for the outputs. |
@RedMickey It is indeed installed via VSCode has to be installed in classic (this is perhaps a better reference) mode, so there shouldn't be any difference. |
Is this issue being tracked in the vscode repo or is it only happening with this extension? |
@Elias-Graf While investigating this issue we found two similar issues in VS Code repo (issue1, issue2). The problem occurs if both Node.js and VS Code are installed from snap store. According to these comments (comment1, comment2, comment3) the issue could be in Node.js distributed via snap store. |
Huh, how interesting. Is there anything I can do to help you and the node.js guys? And good one on the investigation, very thorough 👍. |
Hi @Elias-Graf We have reported about this issue to the nodejs/node and nodejs/snap repositories. So, we will track these issues and test proposed fixes. Since it's a Node.js issue, we don't think there's anything actionable from the React Native Tools side on this. Thank you for your assistance! |
@Elias-Graf I am closing this issue because this is an external issue (Node.js related). Please feel free to open new ones if needed. |
🐛 What is the bug? How can we reproduce it?
When pressing the play button it just shows
[Info] Starting Packager
, and after a long time it fails withCould not start the packager. (error code 303)
. I normally launch the app with:npm start
and then in a different terminalnpm run android
.Steps:
npx react-native init test
Expected behavior
The packager to start
Debug output
Debug Console
React Native output channel
Developer Tools console
Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
:v1.6.1
The text was updated successfully, but these errors were encountered: