While I was trying to make a build of app, it was showing this error:
FAILURE: Build failed with an exception.
What is the solution to this problem?
Open your android/build.gradle
and pass on line 23 (before: allprojects { ... ):
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
}
}
}
}
Thank @marksturm . It worked for me
@marksturm Thanks that's work
Most helpful comment
Open your android/build.gradle
and pass on line 23 (before: allprojects { ... ):