Launching libmain.dart on AOSP on IA Emulator in debug mode… Running Gradle task ‘assembleDebug’… Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Target gen_localizations failed: Exception: Found syntax errors. FAILURE: Build failed with an exception. * Where: Script ‘E:app-devflutterpackagesflutter_toolsgradleflutter.gradle’ line: 1151 * What went wrong: Execution failed for task ‘:app:compileFlutterBuildDebug’. > Process ‘command ‘E:app-devflutterbinflutter.bat” finished with non-zero exit value 1  

Solution

delete the l10n.yaml file in your project root.