when i building my flutter project i have the following error Launching lib/main.dart on Mi A2 in debug mode...
Error running Gradle:
Exit code 1 from: /home/khaled/flutter/oky/android/gradlew app:properties: Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error. FAILURE: Build failed with an exception.
- Where: Build file '/home/khaled/flutter/oky/android/app/build.gradle' line: 25
- What went wrong:
gradle file :
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}