question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Have the new project wizard show failure messages from 'flutter create'.

See original GitHub issue

I can’t create an application with caps. Lowercase app names work.

Same goes for the command. flutter create ./MyApp

Steps to Reproduce

  1. Create app with Caps screen shot 2017-05-09 at 4 40 24 pm
  2. Notice Failure screen shot 2017-05-09 at 4 30 23 pm

Version info

[✓] Flutter (on Mac OS X 10.12.4 16E195, channel master)
    • Flutter at /Users/branflake2267/git/flutter
    • Framework revision 5b18fca053 (60 minutes ago), 2017-05-09 15:41:06 -0700
    • Engine revision cbbf956fcb
    • Tools Dart version 1.23.0-dev.11.11

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
    • Android SDK at /Users/branflake2267/Library/Android/sdk
    • Platform android-25, build-tools 25.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.2, Build version 8E2002
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.2)
    • Dart plugin version 171.4424
    • Flutter plugin version 13.1

[✓] Connected devices
    • None

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
skybriancommented, May 10, 2017

I believe this is due to a recent change to the “flutter create” command. When I try it from the command line:

"MyAppToday2" is not a valid Dart package name.

**DO** use `lowercase_with_underscores` for package names.

From the [Pubspec format description]
(https://www.dartlang.org/tools/pub/pubspec.html):

Package names should be all lowercase, with underscores to separate words,
`just_like_this`. Use only basic Latin letters and Arabic digits: [a-z0-9_].
Also, make sure the name is a valid Dart identifier -- that it doesn't start

So one issue is that we need to display the output when the command fails.

1reaction
pqcommented, May 10, 2017

Thanks for this @branflake2267. I was looking at some related validation and will do some updating to align project creation with the checks in flutter create. (Incidentally, this is tangentially related to proposals for a shareable validation API tracked in https://github.com/dart-lang/linter/issues/654 and https://github.com/dart-lang/linter/issues/657.)

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Flutter Project wizard not showing on Android Studio 3.0.1
In short, it's because Flutter is not correctly configurated, but behind the scene there might be different reasons, so the universal solution ...
Read more >
Integrate a Flutter module into your Android project
If you create a new module, you can use a wizard to select the module name, ... Tip: By default, your project's Project...
Read more >
New features in Android Studio Preview
This page lists the new features introduced in Android Studio preview releases. The preview builds provide early access to the latest features and ......
Read more >
Quickstart: Flutter - Supabase
Enter your project details. Wait for the new database to launch. Set up the database schema#. Now we are going to set up...
Read more >
Different Ways to fix "Error running android: Gradle project ...
This issue will not be solved if the folder containing Gradle files is deleted or corrupted. In such a case, you have to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found