Open SX-Code opened 2 months ago
same here, temporary fix
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
}
}
}
}
@fuadarradhi Where should I include this snippet?
@fuadarradhi Where should I include this snippet?
android/build.gradle.
@fuadarradhi thank you. It didn't work until I commented out the previous block containing project.evaluationDependsOn(':app')
Here is my android/build.gradle:
// build.gradle (allprojects)
// Set up repositories for dependencies
allprojects {
repositories {
google()
mavenCentral()
}
// Set the build directory
rootProject.buildDir = '../build'
// Configure subprojects
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
// Ensure evaluation depends on the app module
//subprojects {
// project.evaluationDependsOn(':app')
//}
// Commented previous block and inserted this block, as indicated by
// https://github.com/4Q-s-r-o/ota_update/issues/120
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
}
}
}
}
// Register a clean task
//tasks.register("clean", Delete) {
// delete rootProject.buildDir
//}
}
+1
I encountered the same problem; the workaround worked. Could someone provide more details about the root cause ? This seems linked to sdk version not being updated to 34; but what package is concerned and where should it be fixed ?
Also have this error when run in profile mode.
This pull request resolve this bug #121
问题描述
flutter --version
: Flutter 3.24.0将版本回退到3.22.0,该问题消失。