Public bug reported: Now that Gradle 4.4.1 is about to enter Bionic, and has been available in Cosmic and Dingo for some time, it is safe to say that version 2.2.2 of the Android Gradle plugin is a very outdated match.
Looking at https://developer.android.com/studio/releases/gradle-plugin #updating-gradle, version 3.0.1 or 3.1.0 would be more appropriate. It's probably also more compatible to later OpenJDK releases. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: libgradle-android-plugin-java 2.2.2-3 ProcVersionSignature: Ubuntu 4.18.0-17.18~18.04.1-generic 4.18.20 Uname: Linux 4.18.0-17-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.6 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Mar 20 19:42:28 2019 EcryptfsInUse: Yes InstallationDate: Installed on 2016-04-21 (1062 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) PackageArchitecture: all SourcePackage: android-platform-tools-base UpgradeStatus: Upgraded to bionic on 2018-04-26 (327 days ago) ** Affects: android-platform-tools-base (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1821073 Title: libgradle-android-plugin-java 2.2.2 is outdated To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/android-platform-tools-base/+bug/1821073/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs