-
Notifications
You must be signed in to change notification settings - Fork 25
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
Require Android cmdline-tools
package during onboarding
#2
Comments
@lfroms Looking for some feedback on how to handle the UX of a missing
Beyond that, Tophat could move to only checking for command-line tools package (maybe even bundling to bootstrap) and verifying |
I think option 2 might be a good place to start because installing I like the install button of option 3 but it does hide how the install is taking place and in case of error, might not be easy to tell how it failed. Logical grouping looks great—I think we may need to introduce a scroll view around the onboarding items though as we were already pretty close to running out of room on a 14" display.
Definitely. The main reason Android Studio is a requirement today is because it gets us 90% of the way through setup in one step (and also because it bundles the JDK internally). I'd love for Tophat to eventually require fewer dependencies and be a bit more self-contained. |
Why is Android studio required btw? Shouldn't Android Command-line Tools be enough? |
@bartekpacia Requiring Android Studio gets the user through most of the setup process in one step, see my previous comment:
|
👋 I'm trying out Tophat, and I find this behavior confusing. I have Android Studio installed, and Tophat auto-detected my Android SDK path correctly. Tools such as
However, when I try to install an APK, I get a bunch of errors (not just for
Why does Tophat not try to find the tools in the SDK's path, when it explicitly asks for this SDK and knows about it? That feels like the more correct way to look at this issue to me. |
@outadoc, Tophat looks for A temporary workaround would be to manually install We can either support falling back to Android Studio paths, or explicitly require |
IIRC those tools aren't the current versions and require JDK8, specifically JAXB, which is no longer bundled with newer versions of the JDK which Android Studio is shipped with. I'll poke around to see if JAXB is available somewhere in the AS install. |
Description
During onboarding Tophat validates that Android Studio is installed, which it uses to for various Android tooling. Tophat however requires a bit more than a standard Android Studio installation, it expects
cmdline-tools
to be installed foravdmanager
,apkanalyzer
, etc.Falling back to versions of the tools which are installed with Android Studio in
~/Library/Android/sdk/tools/bin
are unsupported;cmdline-tools
is required.Steps to reproduce
cmdline-tools
(ie. fresh Android Studio install)avdmanager
and other tools are not available in the exec path.Expected behavior
cmdline-tools
and satisfy Tophat requirementsThe text was updated successfully, but these errors were encountered: