Both cases are covered in Google's Android guide about Android Studio. However, for CI agents - possibly running with no GUI, or if you simply don't want the somewhat bloated piece of software on your computer, it is possible to simply download the SDK and tool-set, purely. If you have Android Studio installed - as most of us do, then the SDK should be available for you somewhere on your machine *. If otherwise the version is simply wrong, try these refs for Macs consider employing the JAVA_HOME variable to get things to work right: the command failed altogether), try this guide. If java isn't in your path or not even installed (i.e. On MacOS, in particular, java comes from both the OS and possibly other installers such as homebrew, so you are more likely to go into a mess: see this Stackoverflow post. For Detox, what the command-line sees is what matters. Note: Do not be confused by the Java version potentially used by your browsers, etc.