From cc733660ed9108893ab8c6728c802b76cc282f4d Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Thu, 26 May 2022 13:05:08 -0700 Subject: [PATCH] Add link to more detailed multidex information. (#104558) --- packages/flutter_tools/lib/src/android/gradle_errors.dart | 1 + .../test/general.shard/android/gradle_errors_test.dart | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/flutter_tools/lib/src/android/gradle_errors.dart b/packages/flutter_tools/lib/src/android/gradle_errors.dart index 903f76346090..6ac8933cba90 100644 --- a/packages/flutter_tools/lib/src/android/gradle_errors.dart +++ b/packages/flutter_tools/lib/src/android/gradle_errors.dart @@ -101,6 +101,7 @@ final GradleHandledError multidexErrorHandler = GradleHandledError( if (multidexEnabled) { globals.printStatus( 'Multidex support is required for your android app to build since the number of methods has exceeded 64k. ' + 'See https://docs.flutter.dev/deployment/android#enabling-multidex-support for more information. ' "You may pass the --no-multidex flag to skip Flutter's multidex support to use a manual solution.\n", indent: 4, ); diff --git a/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart b/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart index 81aa5205e2ee..e1b792ed292e 100644 --- a/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart +++ b/packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart @@ -361,6 +361,11 @@ Execution failed for task ':app:mergeDexDebug'. 'Multidex support is required for your android app to build since the number of methods has exceeded 64k.' ) ); + expect(testLogger.statusText, + contains( + 'See https://docs.flutter.dev/deployment/android#enabling-multidex-support for more information.' + ) + ); expect(testLogger.statusText, contains( 'Your `android/app/src/main/AndroidManifest.xml` does not contain'