Mobile Apps: Gradle For Dummies

Trying to get Wappler set up to venture into Mobile Apps and the system check fails to install Gradle.

==> Installing gradle
Error: Your Command Line Tools (CLT) does not support macOS 11.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

Error: An exception occurred within a child process:
  SystemExit: exit
Gradle installation failed!

Not sure where to go from here.

Can be a little difficult installing Gradle, Windows too… I followed this guide and it got me through.

Thanks @Dave. Wow, that is all greek to me. Totally over my head. I thought Android was suppose to be easy compared to iOS? :frowning:

As soon as you get the basics installed its all very simple Brad.

Anyone able to translate Gradle installation on a Mac to something a dummy like me can understand? :wink:

Duh … just installed the updated CML from the apple site like in the error instructions. I can now add Android platform but builds fail :frowning:

Brad,

You seem to be missing lots of tools - did you do a system check on the mobile project?

Also do you have the latest Xcode installed and did you run it and setup?

And have the latest macOS as well.

Everything is the latest and up to date.

System check is successful …

Screen Shot 2021-03-01 at 9.52.36 AM

  • What went wrong:
    Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
    Failed to install the following Android SDK packages as some licences have not been accepted.
    platforms;android-29 Android SDK Platform 29
    To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
    Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

    Using Android SDK: /Users/bradlawryk/Library/Android/sdk

And did you also ran the target dependent system check when you for example installed android as target?

Also are you on the latest Cordova

For android you have to install the android studio and all the Sdk needed. From its tools menu

I installed everything ...

Now when doing a build or emulate I get the following error:

AAPT2 aapt2-4.0.0-6051327-osx Daemon #3: Daemon startup failed

I think it has to do with ...

Got it working … allowed aapt2 in my system preferences. Emulator and build work now. Thanks again for the amazing support. :beers:

FOund an issue with the emulation but I’ll post that in a new thread as it’s unrelated to this.

1 Like

I admire your stamina @brad, I’ll be asking you questions when I get around to building some mobile apps!

1 Like