diff --git a/testing/scenario_app/BUILD.gn b/testing/scenario_app/BUILD.gn index eb47cc18e88a4..79509ddb5929f 100644 --- a/testing/scenario_app/BUILD.gn +++ b/testing/scenario_app/BUILD.gn @@ -20,9 +20,13 @@ if (!is_aot) { assert(false) } + flutter_src_dir = rebase_path("$root_out_dir/../../flutter") + copy("copy_jit_assets") { visibility = [ ":*" ] sources = [ + # Include FontManifest.json to avoid a runtime error when loading fonts. + "$flutter_src_dir/testing/scenario_app/android/FontManifest.json", "$target_gen_dir/isolate_snapshot_data", "$target_gen_dir/isolate_snapshot_instr", "$target_gen_dir/kernel_blob.bin", diff --git a/testing/scenario_app/android/FontManifest.json b/testing/scenario_app/android/FontManifest.json new file mode 100644 index 0000000000000..474a59a267b1e --- /dev/null +++ b/testing/scenario_app/android/FontManifest.json @@ -0,0 +1 @@ +[{"family":"Roboto","fonts":[{"asset":"Roboto-Medium.ttf"}]}]