Closed MojtabaMohammadzadeh closed 1 month ago
I also have this Issue
Same
Hello everybody!
I managed to solve my problem by adding the following snippet to my project's build.gradle file:
name_of_your_project/android/build.gradle:
allprojects {
...
subprojects {
afterEvaluate { project ->
//This solves the namespace problem
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
//And this solves the next one that will arise after solving the first: Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin
if (project.plugins.hasPlugin('kotlin-android') || project.plugins.hasPlugin('kotlin')) {
project.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '1.8'
}
}
}
}
}
}
Refs:
Hope it helps!
The namespace has been added in the new version 1.3.0
Hi . I upgrade my flutter version and build.gradle to new version and now it show this error when I need to build Failed to query the value of property 'buildFlowServiceProperty'.