-
Notifications
You must be signed in to change notification settings - Fork 45
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
Emulator crashes in Android Studio due to invalid SDK root #81
Comments
@tadfisher is there any update on this? I feel like there is something obvious I'm missing given it's such a basic error but no one else has raised. |
@mairs8 From your logs:
|
@igor-ramazanov I don't think it is this. From the official android studio docs.
Also Android studio doesn't seem to respect the enviroment variables i am setting in my |
It could depend on the shell you use to launch the app. If it's New processes won't see It's reasonable to check in the settings if Android Studio was able to locate the Android SDK. |
For example, if you launch the Android Studio as a desktop app, then what is inside the |
@igor-ramazanov so the issue appears to be with one of the files in the tadfisher sdk. Would you be able to do me a favour and check in your android-nixpkgs sdk the file When I look at the official sdk downloaded by android studio the emulator/emulator file is an executable. however in android-nixpkgs, this is a text file pointing to Contents of emulator/emulator.txt:
|
I am not able to run the Android Virtual Device emulator from Android Studio 2022.3.1.
The emulator crashes with message
Cannot find valid sdk root path
.The emulator appears to be looking for the sdk root in
/nix/store
judging from the output of the crash log below.what am I missing?
Steps to Reproduce
android-nixpkgs
to nixos machine via home-manager module below./home/$USER/Android/Sdk
./home/$USER/.cache/Google/AndroidStudio2022.3/log/idea.log
.Failed Attempts to Fix
local.properties
read only and removing sdk.path value in the file per FAQ section.~/.config/Google/AndroidStudio{Version}/options/jdk.table.xml
per FAQ section.ANDROID_HOME
andANDROID_SDK_HOME
environment variables to/home/$USER/Android/Sdk
via the Android Studio terminal and .bashrc.Android Studio Crash Log
android-sdk.nix
The text was updated successfully, but these errors were encountered: