Build Android app in command-line with Android Studio on Mac

Viewed 200

I installed Android Studio on my Mac. I have an android project. I'd like to build it in command-line. If I try to build, or even just get the available tasks:

./gradlew tasks

I got this error:

No Java runtime present, requesting install.

I don't want to install a new JDK. I can build the app in Android Studio. How can I use the JDK installed by Android Studio?

1 Answers
Related