From 475a94ed0b1d521417661c01ab4f4225bf2967cc Mon Sep 17 00:00:00 2001 From: PartyDonut Date: Fri, 11 Oct 2024 18:33:27 +0200 Subject: [PATCH] [Android] Build fix --- android/build.gradle | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 8f31e8c..7240bb6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,6 +6,20 @@ allprojects { } rootProject.buildDir = '../build' + +//[Fixes AAPT: error: resource android:attr/lStar not found] +subprojects { + afterEvaluate { project -> + if (project.plugins.hasPlugin("com.android.application") || + project.plugins.hasPlugin("com.android.library")) { + project.android { + compileSdkVersion 34 + buildToolsVersion "34.0.0" + } + } + } +} + subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } @@ -15,4 +29,5 @@ subprojects { tasks.register("clean", Delete) { delete rootProject.buildDir -} \ No newline at end of file +} +