Skip to content

Flutter tool crashes on Android only app with plugins #20110

@amirh

Description

@amirh

An Android only flutter app that does not have the ios folder crashes the flutter tool on iOS if it uses plugins that supports ios.

Repro steps, on a Mac:

flutter create android_only
cd android_only
rm -rf ios
# Add a dependency on the path_provider plugin:
sed -i.bak '/cupertino_icons/a\
\  path_provider: any' pubspec.yaml

flutter build apk -v

This crashes with:

...
[ +179 ms] Found plugin path_provider at /Users/amirha/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.1/
[ +191 ms] [/private/tmp/android_only/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /private/tmp/android_only/ios/Runner.xcodeproj -target Runner -showBuildSettings
[  +23 ms] "flutter apk" took 1,808ms.

Oops; flutter has exited unexpectedly.
Sending crash report to Google.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-macBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions