diff --git a/packages/flutter_tools/lib/src/flutter_plugins.dart b/packages/flutter_tools/lib/src/flutter_plugins.dart index 65c4c56605..f11f0b86a8 100644 --- a/packages/flutter_tools/lib/src/flutter_plugins.dart +++ b/packages/flutter_tools/lib/src/flutter_plugins.dart @@ -1260,7 +1260,7 @@ Map> _resolvePluginImplementations( } } else { globals.printWarning( - 'Package ${plugin.name}:$platformKey references $defaultImplPluginName:$platformKey as the default plugin, but the package does not exist.\n' + 'Package ${plugin.name}:$platformKey references $defaultImplPluginName:$platformKey as the default plugin, but the package does not exist, or is not a plugin package.\n' 'Ask the maintainers of ${plugin.name} to either avoid referencing a default implementation via `platforms: $platformKey: default_package: $defaultImplPluginName` ' 'or create a plugin named $defaultImplPluginName.\n', ); diff --git a/packages/flutter_tools/test/general.shard/dart_plugin_test.dart b/packages/flutter_tools/test/general.shard/dart_plugin_test.dart index dc4e8e4816..69342d92b7 100644 --- a/packages/flutter_tools/test/general.shard/dart_plugin_test.dart +++ b/packages/flutter_tools/test/general.shard/dart_plugin_test.dart @@ -946,7 +946,7 @@ void main() { expect( testLogger.warningText, 'Package url_launcher:linux references url_launcher_linux:linux as the default plugin, ' - 'but the package does not exist.\n' + 'but the package does not exist, or is not a plugin package.\n' 'Ask the maintainers of url_launcher to either avoid referencing a default implementation via `platforms: linux: default_package: url_launcher_linux` ' 'or create a plugin named url_launcher_linux.\n' '\n');