[Android] Build fix

This commit is contained in:
PartyDonut 2024-10-11 18:33:27 +02:00
parent 9d241f881c
commit 475a94ed0b

View file

@ -6,6 +6,20 @@ allprojects {
} }
rootProject.buildDir = '../build' 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 { subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}" project.buildDir = "${rootProject.buildDir}/${project.name}"
} }
@ -15,4 +29,5 @@ subprojects {
tasks.register("clean", Delete) { tasks.register("clean", Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }