Skip to content
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

can´t find emulation device #623

Open
vanderleisp opened this issue Oct 15, 2024 · 7 comments
Open

can´t find emulation device #623

vanderleisp opened this issue Oct 15, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@vanderleisp
Copy link

Installed Radon as extension to VS Code, and then opened a React Native code, and went to add a device to emulate, but the two Android options that showed up, Google Pixel 7 and 6a, wasn´t installed, so I went to the Android Studio and installed both, but still Radon can´t find the images, as:
No devices found
No system images found. You can install them using Android Studio.

Environment

  • Version of currently used Radon IDE v0.0.20
  • Version of React Native/Expo used in the project: Expo 3.2.1 or 51.0.24

don´t know if need to reboot the machine as for the VS Code find the images installed by the Android Studio.

@vanderleisp vanderleisp added the bug Something isn't working label Oct 15, 2024
@filip131311
Copy link
Collaborator

Hello, thank you for your feedback, would you mind sending us radon ide logs? You can find them in output section of vscode under Radon IDE. Also could you tell me what version of android API do you have installed on your device?

@timonjagi
Copy link
Collaborator

Facing the same issue, despite adding Google Pixel 7 device in Android Studio. I have Android 34 and 35 installed.

Output logs:

2024-10-18 11:17:24.576 [info] Metro Starting project at /Users/timothy/Code/doghouse/mobile
2024-10-18 11:17:24.805 [info] Metro (node:77334) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2024-10-18 11:17:24.805 [info] Metro (Use `node --trace-deprecation ...` to show where the warning was created)
2024-10-18 11:17:25.220 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-10-18 11:17:25.220 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-10-18 11:17:25.270 [info] Metro {"type":"RNIDE_initialize_done","port":57332}
2024-10-18 11:17:25.270 [info] Metro started on port 57332
2024-10-18 11:17:25.270 [info] Metro & devtools ready
2024-10-18 11:17:25.428 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-timothy/emu-crash-34.2.15.db, detection is enabled for process: 77375
2024-10-18 11:17:25.428 [info] Emulator output INFO    | Android emulator version 34.2.15.0 (build_id 11906825) (CL:N/A)
2024-10-18 11:17:25.428 [info] Emulator output INFO    | Found systemPath /Users/timothy/Library/Android/sdk/system-images/android-35/google_apis/arm64-v8a
2024-10-18 11:17:25.802 [info] Emulator output WARNING | FeatureControl is requesting a non existing feature.
2024-10-18 11:17:25.802 [info] Emulator output WARNING | FeatureControl is requesting a non existing feature.
2024-10-18 11:17:25.802 [info] Emulator output ERROR   | This AVD's configuration is missing a kernel file! Please ensure the file "kernel-ranchu" is in the same location as your system image.
2024-10-18 11:17:25.802 [info] Emulator output ERROR   | ANDROID_SDK_ROOT is defined (/Users/timothy/Library/Android/sdk) but cannot find kernel file in /Users/timothy/Library/Android/sdk/system-images/ sub directories
2024-10-18 11:17:25.810 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-timothy/emu-crash-34.2.15.db, detection is enabled for process: 77375
2024-10-18 11:17:25.810 [info] Emulator output INFO    | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag.
2024-10-18 11:17:25.813 [error] Error: Command failed with exit code 1: /Users/timothy/Library/Android/sdk/emulator/emulator -avd 836da3d1-f60b-4217-ae71-c6f878b0b78a -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save

@ViniciusMarcuS2i
Copy link

same here >:(

@vanderleisp
Copy link
Author

Hello, thank you for your feedback, would you mind sending us radon ide logs? You can find them in output section of vscode under Radon IDE. Also could you tell me what version of android API do you have installed on your device?

sorry for long delay in answering, but I took some time off here.
I reinstalled Android Sudio and VS Code, and several drivers, so seems it was some errors here that I had as now Radon is running, even that in general the whole VS consume like 80% of CPU, so need to see why this happens, but its working !!!!

@kmagiera
Copy link
Member

kmagiera commented Nov 5, 2024

Glad to hear its working @vanderleisp – as for the CPU usage, it'd be good to understand the breakdown between different processes. Things like emulator or the application you're starting from Radon IDE are spawned as separate processes and will not contribute CPU usage to the VSCode main process. You can also try using VSCode's command "Developer: Open Process Explorer" that's accessible from command palette (cmd+shift+P shortcut) which shows only processes owned by the editor.

@kmagiera
Copy link
Member

kmagiera commented Nov 5, 2024

@timonjagi are you running this on ARM (M1/M2 etc.) or x86 intel Mac? It appears like something is broken with the image installation in Android sdk. The reason for the crash is the missing kernel file as described in these two error messages:

ERROR   | This AVD's configuration is missing a kernel file! Please ensure the file "kernel-ranchu" is in the same location as your system image.
ERROR   | ANDROID_SDK_ROOT is defined (/Users/timothy/Library/Android/sdk) but cannot find kernel file in /Users/timothy/Library/Android/sdk/system-images/ sub directories

Would you be able to check if kernel-ranchu file exists under the selected directory? /Users/timothy/Library/Android/sdk/system-images/android-35/google_apis/arm64-v8

Otherwise try installing some new version of the SDK using instructions from here: https://ide.swmansion.com/docs/simulators#installing-android-images and then try creating new emulator with that installed version of SDK

@kmagiera
Copy link
Member

kmagiera commented Nov 5, 2024

@ViniciusMarcuS2i do you see the same error logs related to missing kernel-ranchu or what do you mean by "same here"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants