I realize that and that's what I did -- the error message was not
helpful because I thought it would just detect the one in Android
Studio (seems to be specific to Windows?).

Another gotcha: I had to add $ANDROID_HOME/emulator to my PATH to run
it in the emulator
On Thu, Jul 12, 2018 at 1:50 PM Darryl Pogue <[email protected]> wrote:
>
> I believe on macOS you'll need to install gradle through something
> like Homebrew.
>
> On Wed, Jul 11, 2018 at 10:42 PM Shazron <[email protected]> wrote:
> >
> > Sorry, Android newbie here.
> >
> > I have Android 3.1.3 installed on macOS, with cordova 8.0.0.
> > I did:
> >     cordova platform add https://github.com/apache/cordova-android#7.1.1
> >     cordova build
> >
> > I get this error:
> > https://github.com/apache/cordova-android/blob/bf29fe0e10334938d2e6ee8116f9a30c762c40b4/bin/templates/cordova/lib/check_reqs.js#L137
> >
> > Should it be able to detect and use the gradle within Android Studio.app?
> >
> > Based on code inspection here, it doesn't (isWindows is false, and
> > thus androidStudioPath is also null):
> > https://github.com/apache/cordova-android/blob/bf29fe0e10334938d2e6ee8116f9a30c762c40b4/bin/templates/cordova/lib/check_reqs.js#L122
> >
> > I know the docs say "As of Cordova-Android 6.4.0, Gradle is now
> > required to be installed to build Android." so perhaps the error
> > message needs to be tweaked.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to