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
android-studio can't work with read-only sdk from nixstore #14903
Comments
cc @the-kenny |
The solution I've found is to use this nix-shell configuration. Download both android-studio and android-sdk from google and run it. Also I've told android-studio that my android-sdk is located in a folder of extracted android-sdk I've downloaded from google. |
Good to hear you got it working! I wonder why android-studio even needs writable paths. Things like react-native work just fine. Did you try if the fhsUserEnv allows you to install other sdk packages via the |
This seems similar to #8650. |
@jagajaga That seems to me like the way to go for Android development. Is there some way to get that into nixpkgs in a clean manner? At the moment Android Studio seems useless on NixOS without such FHS additions. The package for Steam seems to do something similar. Edit: |
Is it possible to fix this through the package itself or is the nix-shell the only solution? |
@jagajaga I wonder how do you deal with missing development headers as described in http://stackoverflow.com/q/29241640/168034? |
@phunehehe somehow :) |
@jagajaga I hoped that somehow doesn't involve invoking |
Isn't there something that can be done here? I mean, we got steam packaged...! |
See #8650 (comment). Basically use The chroot will allow the use of binaries like This is far from ideal what you want on NixOS, but I don't see a practical alternative. Handling dependencies of Android in NixOS (like how it is packaged right now) seems like maintenance hell. A lot needs to be patched to get the IDE working: both Android Studio and |
@bobvanderlinden thanks! I just discovered that in parallel too, by looking for |
This commit fixes 2 main problems: - Android Studio comes with its own package manager. The current packaging approach doesn't allow such management. As a result the package is unusable (see NixOS#8650 and NixOS#14903). In this version, $ANDROID_HOME is _not_ set, allowing Android Studio to deal with the Android SDK as it pleases (typically in $HOME/Android/Sdk). - Android Studio downloads prebuilt binaries as part of the SDK. These tools (e.g. `mksdcard`) have `/lib/ld-linux.so.2` set as the interpreter. An FHS environment is used as a work around for that.
Thank you very much, @phunehehe. |
So the name tells it all. Using the latest android-studio from master I can't create a new project because of that error.
Imgur
The text was updated successfully, but these errors were encountered: