Skip to content

Commit cc73366

Browse files
authored
Add link to more detailed multidex information. (#104558)
1 parent 91836d6 commit cc73366

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/flutter_tools/lib/src/android/gradle_errors.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ final GradleHandledError multidexErrorHandler = GradleHandledError(
101101
if (multidexEnabled) {
102102
globals.printStatus(
103103
'Multidex support is required for your android app to build since the number of methods has exceeded 64k. '
104+
'See https://docs.flutter.dev/deployment/android#enabling-multidex-support for more information. '
104105
"You may pass the --no-multidex flag to skip Flutter's multidex support to use a manual solution.\n",
105106
indent: 4,
106107
);

packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ Execution failed for task ':app:mergeDexDebug'.
361361
'Multidex support is required for your android app to build since the number of methods has exceeded 64k.'
362362
)
363363
);
364+
expect(testLogger.statusText,
365+
contains(
366+
'See https://docs.flutter.dev/deployment/android#enabling-multidex-support for more information.'
367+
)
368+
);
364369
expect(testLogger.statusText,
365370
contains(
366371
'Your `android/app/src/main/AndroidManifest.xml` does not contain'

0 commit comments

Comments
 (0)