'I am learning to use push notifications on Android and cannot build the sample Twilio app

I followed the tutorial on https://www.twilio.com/docs/notify/quickstart/android, but got stuck on the Set up the Twilio Notify sample Android app step. Android Studio (Bumblebee v2021.1.1 Patch 2) says

The project uses Gradle 4.4 which is incompatible with Java 11 or newer.

and gives me the option to Upgrade Gradle wrapper to 4.8 version and re-import the project, which I did. However, the "Gradle project sync" (whatever that means) fails with

FAILURE: Build failed with an exception.

  • Where: Initialization script '/tmp/ijinit.gradle' line: 43

I have next to zero experience with Android Studio and Java (my actual goal is to build an Ionic app in JS and avoid AS as much as possible – I prefer to stay in Emacs & shell), but I figured I should start with the stock tutorial app to get it working.

Is there anything I'm doing wrong? I don't even know what information I should provide to help with debugging of this issue...



Sources

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

Source: Stack Overflow

Solution Source