-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Summary
Main bug
Orbit on CachyOS Linux (Arch based distro) will only recognize the old Android SDK path of ~/Android/Sdk and not the new default Android Studio seems to install to of ~/Android/sdk. This is similar to the issue I found on expo-cli in this issue in the expo/expo repo.
Extra details
Immediately after installing Expo Orbit and launching it I got a pop-up error telling me I did not have the Android SDK installed or that I needed to use ANDROID_HOME env variable (and possibly a different env variable, but I do not remember) to specify the path. When I got past the pop-up, Orbit gave its drop-down (see picture below) did not have any emulators and showed a warning icon (it had a triangle warning on the right side).
Pop-up when you click on the triangle warning icon
Normal pop-up behavior once I have the old path

Related bug
It seems Orbit will not correctly see the ANDROID_HOME env variable, either.
Steps to reproduce
On CachyOS Linux
Install from rpm file in expo/orbit releases
Followed this guide
- Install
rpmwithsudo pacman -Syu rpm-tools - Make a temp directory for build files with
mkdir -p tmp/orbit - Move into the directory with
cd temp/orbit - Get the latest rpm release for Orbit with
curl -L "https://github.com/expo/orbit/releases/download/expo-orbit-v2.0.1/expo-orbit-2.0.1-1.x86_64.rpm" -o expo-orbit-2.0.1-1.x86_64.rpm - Make a build file named
PKGBUILDin thetmp/orbitdirectory (the one I made is shown below)
pkgname=expo-orbit
pkgver=2.0.1
pkgrel=1
pkgdesc="Accelerate your development workflow with one-click build launches and simulator management"
arch=('x86_64')
depends=()
optdepends=()
source=("expo-orbit-2.0.1-1.x86_64.rpm")
sha256sums=('SKIP')
package() {
find $srcdir/ -mindepth 1 -maxdepth 1 -type d | xargs cp -r -t "$pkgdir"
}
- Make package with
makepkg -si - Check the package was made correctly with
ls -l /usr/bin/expo-orbit--> Should give output like-rwxr-xr-x 1 root root 55223672 Jun 21 21:39 /usr/bin/expo-orbit
Running Expo Orbit
- Open Expo Orbit application
- See pop-up complaining Android SDK not installed <-- I believe, but I cannot reproduce currently
- Click "Okay" option (or the like)
- Click Expo Orbit icon in system try
- See warning icon that adb is not installed
- Click the triangle warning sign on the right of "Android" to see instructions to install
adbglobally or use theANDROID_HOMEenv variable
To get it working
- Open file explorer or terminal
- Navigate to the default Android SDK location (currently
~/Android/sdk) - Rename the directory to the old default Android SDK location of
~/Android/Sdk - Open Android Studio
- Click "Cancel" when Android Studio complains with a pop-up about "Missing SDK"
- Click "Okay" when a warning about exiting the setup wizard comes up
- Click "More Actions"
- Click "SDK Manager"
- At the top, click "Edit" to choose the new SDK location

- Click the "Folder" icon to get a pop-up to select the directory.

- Select the new SDK location
~/Android/Sdk(sometimes it takes a moment to load the new directory) - Follow the prompts to finalize registering the new SDK location
- Click the Expo Orbit icon in the system tray (usually it will update automatically, but if not try quitting and reopening Expo Orbit)
Environment
npx expo-env-info
expo-env-info 1.2.2 environment info:
System:
OS: Linux 6.13 CachyOS Linux
Shell: 3.7.1 - /bin/fish
Binaries:
Node: 22.13.1 - /run/user/1000/fnm_multishells/19331_1739984372697/bin/node
Yarn: 1.22.22 - /run/user/1000/fnm_multishells/19331_1739984372697/bin/yarn
npm: 11.1.0 - /run/user/1000/fnm_multishells/19331_1739984372697/bin/npm
IDEs:
Android Studio: AI-242.23726.103.2422.13016713
