From e31d88f9c9a4cc098e287cb9dec7a9325b62f307 Mon Sep 17 00:00:00 2001 From: Michael Klimushyn Date: Mon, 26 Aug 2019 14:30:22 -0700 Subject: [PATCH] Downgrade the AndroidX warning (#39147) Originally we wanted to cast as wide of a net and make the warning as prominent as possible. Recently we've received feedback that the false positives are more harmful than not, so downgrading the loud message to a single line warning. --- packages/flutter_tools/lib/src/android/gradle.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/android/gradle.dart b/packages/flutter_tools/lib/src/android/gradle.dart index e2a2adddb3..03d2148f6e 100644 --- a/packages/flutter_tools/lib/src/android/gradle.dart +++ b/packages/flutter_tools/lib/src/android/gradle.dart @@ -742,10 +742,7 @@ Future _buildGradleProjectV2( if (exitCode != 0) { if (potentialAndroidXFailure) { - printError('*******************************************************************************************'); - printError('The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.'); - printError('See https://goo.gl/CP92wY for more information on the problem and how to fix it.'); - printError('*******************************************************************************************'); + printStatus('AndroidX incompatibilities may have caused this build to fail. See https://goo.gl/CP92wY.'); BuildEvent('android-x-failure').send(); } throwToolExit('Gradle task $assembleTask failed with exit code $exitCode', exitCode: exitCode);