Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the build option when using dart2 preview #907

Closed
wants to merge 1 commit into from

Conversation

rkowase
Copy link

@rkowase rkowase commented Mar 24, 2018

Add the description of the build apk option when using dart2 preview.
If you build without this option, NoSuchMethodError will occur.

@googlebot googlebot added the cla: yes Contributor has signed the Contributor License Agreement label Mar 24, 2018
@goderbauer
Copy link
Member

@aam Is this a bug or intentional?

@aam
Copy link
Member

aam commented Apr 2, 2018

If you build without this option, NoSuchMethodError will occur.

This sounds like a bug. --preview-dart-2 is defaulted to true, so one doesn't have to specify it explicitly.

@aam
Copy link
Member

aam commented Apr 2, 2018

FWIW, flutter build apk works fine for me on master:

$FH/flutter/examples/flutter_gallery$ ../../bin/flutter build apk
Running "flutter packages get" in flutter_gallery...         1.1s
Initializing gradle...                                       0.9s
Resolving dependencies...                                    8.1s
Running 'gradlew assembleRelease'...                             
Skipping AOT snapshot build. Fingerprint match.
Built build/app/outputs/apk/release/app-release.apk (15.4MB).
$FH/flutter/examples/flutter_gallery$  ../../bin/flutter doctor -v
[✓] Flutter (Channel master, v0.2.5-pre.86, on Linux, locale en_US.UTF-8)
    • Flutter version 0.2.5-pre.86 at $FH/flutter
    • Framework revision 0c89920069 (16 hours ago), 2018-04-01 17:35:05 -0700
    • Engine revision c903c217a1
    • Dart version 2.0.0-dev.43.0.flutter-52afcba357

@mit-mit
Copy link
Member

mit-mit commented Apr 4, 2018

@rkowase can you elaborate on what issue you are seeing?

@Hixie
Copy link
Contributor

Hixie commented Apr 9, 2018

@rkowase Let's start with filing a bug on this, and we'll move from there. I'm going to close this PR for now since it's not clear what the issue is.

@Hixie Hixie closed this Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants