You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 PKGBUILD in the tmp/orbit directory (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 adb globally or use the ANDROID_HOME env 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)
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
rpm
withsudo pacman -Syu rpm-tools
mkdir -p tmp/orbit
cd temp/orbit
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
PKGBUILD
in thetmp/orbit
directory (the one I made is shown below)makepkg -si
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
adb
globally or use theANDROID_HOME
env variableTo get it working
~/Android/sdk
)~/Android/Sdk
~/Android/Sdk
(sometimes it takes a moment to load the new directory)Environment
npx expo-env-info
The text was updated successfully, but these errors were encountered: