{"id":1244,"date":"2023-11-14T06:10:14","date_gmt":"2023-11-14T06:10:14","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=1244"},"modified":"2023-11-14T06:10:16","modified_gmt":"2023-11-14T06:10:16","slug":"flutter-project-creating-issue-is-not-a-valid-dart-package-name","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/flutter-project-creating-issue-is-not-a-valid-dart-package-name\/","title":{"rendered":"Flutter Project Creating issue (is not a valid Dart package name)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"355\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-14.png\" alt=\"\" class=\"wp-image-1245\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-14.png 897w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-14-300x119.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-14-768x304.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/11\/image-14-850x336.png 850w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/figure>\n\n\n\n<p>The error message indicates that &#8220;new_app_App&#8221; is not a valid Dart package name. Dart package names must follow certain conventions outlined in the Dart documentation.<\/p>\n\n\n\n<p>Here are the rules for valid Dart package names:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Must be a valid Dart identifier, which means it should consist of alphanumeric characters and underscores.<\/li>\n\n\n\n<li>Must not start with a digit.<\/li>\n\n\n\n<li>Cannot be a reserved word in Dart.<\/li>\n<\/ol>\n\n\n\n<p>To fix this issue, choose a Dart package name that adheres to these rules. For example, you could use a name like &#8220;new_app&#8221; or &#8220;<strong>newApp<\/strong>&#8221; instead of &#8220;<strong>new_app_App<\/strong>&#8220;. Then, try running the <code>flutter create<\/code> command again.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flutter create -i objc -a java new_app\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The error message indicates that &#8220;new_app_App&#8221; is not a valid Dart package name. Dart package names must follow certain conventions outlined in the Dart documentation. Here are&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[229,493,494],"class_list":["post-1244","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-flutter","tag-flutter-project-creating-issue-is-not-a-valid-dart-package-name","tag-project-creating-issue"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/1244\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}