Got this error while building the apk from flutter...
# community-support
a
Got this error while building the apk from flutter , I have less experience with Android Development , What this error means and how can i troubleshoot this ? , Thanks in advance flutter build apk --release Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true FAILURE: Build failed with an exception. * Where: Build file '/home/anani/Documents/dev/flutter/AppLockFlutter/android/build.gradle' line: 15 * What went wrong: A problem occurred evaluating root project 'android'. > A problem occurred configuring project ':app'. > Removing unused resources requires unused code shrinking to be turned on. See http://d.android.com/r/tools/shrink-resources.html for more information. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 574ms Running Gradle task 'assembleRelease'... 1,023ms Gradle task assembleRelease failed with exit code 1 The project level build.gradle : allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }
v
What is line 15 in /home/anani/Documents/dev/flutter/AppLockFlutter/android/build.gradle? What does
--stacktrace
say? Can you share a build
--scan
URL?