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

Error when no Android or iOS Folder provided #1

Closed
melewetwo opened this issue May 21, 2020 · 0 comments
Closed

Error when no Android or iOS Folder provided #1

melewetwo opened this issue May 21, 2020 · 0 comments

Comments

@melewetwo
Copy link

Unhandled exception:
NoSuchMethodError: The getter 'length' was called on null.
Receiver: null
Tried calling: length
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      MyFileRepositry.myChangeIosAppName (package:flutter_create/src/file_repository_extension.dart:19:43)
<asynchronous suspension>
#2      FlutterCreate.changeAppName (package:flutter_create/src/flutter_create_base.dart:49:28)
<asynchronous suspension>
#3      FlutterCreate.create (package:flutter_create/src/flutter_create_base.dart:24:11)
<asynchronous suspension>
#4      main (file:///Users/philipp/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_create-1.0.2/bin/flutter_create.dart:30:21)
#5      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#6      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
pub finished with exit code 255

When there is no iOS or Android folder, the creation fails.
There should be a check, if the folders exist.
Imho it is not necessary to provide these folders, as

flutter create .

will create the folders for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants