'react-native cannot find android studio

It's usual that react-native cannot find android SDK. My problem is different...

Android
 ✓ JDK
 ✖ Android Studio - Required for building and installing your app on Android
 ✓ Android SDK - Required for building and installing your app on Android
 ✓ ANDROID_HOME

I of course have Android Studio, maybe not in the default location, but I like it where it is, and it's working for all my projects except this one.

Do you know if there is an environment variable that I can use to specify the Android Studio location to react-native cli? I'm on arch linux (but this should not matter)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source