From 4256b99bd7a11b32a775ad28d7a6a7440d778772 Mon Sep 17 00:00:00 2001 From: mrcodefrost Date: Tue, 5 Nov 2024 17:15:51 +0530 Subject: [PATCH] Fixed - Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl --- android/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index d2ffbff..bf32cc4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,6 +6,19 @@ allprojects { } rootProject.buildDir = "../build" + +subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } +} + subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" }