From 22058dd81d7227a75277cef8e39e2108580a15cc Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 8 Apr 2023 17:54:45 +0000 Subject: [PATCH] Setup Android plugin using `plugins` and `pluginManagement` --- build.gradle | 12 ++---------- settings.gradle | 6 ++++++ 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 settings.gradle diff --git a/build.gradle b/build.gradle index cf18b4f98..55fdeb0bd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,7 @@ -buildscript { - repositories { - google() - mavenCentral() - } - dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' - } +plugins { + id 'com.android.application' version '7.4.2' } -apply plugin: 'com.android.application' - repositories { google() mavenCentral() diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 000000000..8aeca1ea1 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,6 @@ +pluginManagement { + repositories { + google() + mavenCentral() + } +}