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

Improve detecting Android Studio installation on Linux #211

Open
sayanarijit opened this issue Nov 13, 2021 · 1 comment
Open

Improve detecting Android Studio installation on Linux #211

sayanarijit opened this issue Nov 13, 2021 · 1 comment

Comments

@sayanarijit
Copy link

sayanarijit commented Nov 13, 2021

Linux has many ways to install Android Studio, which makes it difficult to detect and parse the information. I can see ides.js looks for the installation only in /opt/android-studio, but depending on how it was installed, the location might be different. Furthermore, there might be multiple installations. Hence, need a better way to parse the information.

In my case, it was /var/lib/snapd/snap/android-studio/current/android-studio/.

Unfortunately, I could not find a good solution to this issue, but there might be other ways to parse this info that I'm totally missing. So, I created this issue to discuss how to handle this.

@talkingtab
Copy link

I had this issue as well. The answer is correct ANDROID_STUDIO MUST BE INSTALLED IN /opt.
Bugs:

  1. The documentation for linux installation does not specify it needs to be installed in opt. the doc leads to an external site that lets you put it anywhere
  2. react-native doctor should show all the checks that might fail. For example what is the command that finds the Sdk, android studio, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants