flutter build apk --obfuscate --split-debug-info=/<project-name>/<directory>
The --split-debug-info flag specifies the directory where Flutter can output debug files. This command generates a symbol map.
--split-debug-info