diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 1348fbc758..febc94fd4a 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -274,7 +274,12 @@ class CompileTest { watch.start(); await flutter('build', options: options); watch.stop(); - releaseSizeInBytes = await file('$cwd/build/app/outputs/apk/app-release.apk').length(); + File apk = file('$cwd/build/app/outputs/apk/app.apk'); + if (!apk.existsSync()) { + // Pre Android SDK 26 path + apk = file('$cwd/build/app/outputs/apk/app-release.apk'); + } + releaseSizeInBytes = apk.lengthSync(); break; } diff --git a/dev/integration_tests/ui/pubspec.yaml b/dev/integration_tests/ui/pubspec.yaml index 22eaa6e2a8..174afdac3c 100644 --- a/dev/integration_tests/ui/pubspec.yaml +++ b/dev/integration_tests/ui/pubspec.yaml @@ -13,6 +13,7 @@ dev_dependencies: sdk: flutter test: 0.12.26 + archive: 1.0.32 # TRANSITIVE DEPENDENCY args: 0.13.7 # TRANSITIVE DEPENDENCY async: 1.13.3 # TRANSITIVE DEPENDENCY barback: 0.15.2+13 # TRANSITIVE DEPENDENCY