{"id":21703,"date":"2021-06-04T06:50:07","date_gmt":"2021-06-04T06:50:07","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=21703"},"modified":"2021-06-04T06:51:22","modified_gmt":"2021-06-04T06:51:22","slug":"flutter-not-showing-open-for-editing-in-android-studio","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/flutter-not-showing-open-for-editing-in-android-studio\/","title":{"rendered":"[SOLVED] Flutter:  Not showing &#8220;Open for editing in Android Studio&#8221;"},"content":{"rendered":"\n<p>The problem is caused by missing&nbsp;<code>.iml<\/code>&nbsp;project files. These files are added automatically to the&nbsp;<code>.gitignore<\/code>&nbsp;file but they should not. To fix it:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Delete&nbsp;<code>.idea<\/code>&nbsp;folder.<\/li><li>Create a new temporary Flutter project with the same name.<\/li><li>Copy from the project to your existing project these 2 missing files:<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li><code>[project_name].iml<\/code><\/li><li><code>android\/[project_name]_android.iml<\/code><\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Open Android Studio and the problem should be gone.<\/li><\/ol>\n\n\n\n<p>To avoid it in the future, make sure .iml files are not excluded in the gitignore. There is a&nbsp;<a href=\"https:\/\/github.com\/flutter\/flutter\/issues\/54092\" target=\"_blank\" rel=\"noopener\">Github issue<\/a>&nbsp;on this topic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem is caused by missing&nbsp;.iml&nbsp;project files. These files are added automatically to the&nbsp;.gitignore&nbsp;file but they should not. To fix it: Delete&nbsp;.idea&nbsp;folder. Create a new temporary Flutter project with the&#8230; <\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[6331],"tags":[6807,6204,6203,405,6805,6806,6804],"class_list":["post-21703","post","type-post","status-publish","format-standard","hentry","category-flutter","tag-iml-file","tag-android-studio","tag-flutter","tag-github","tag-github-issue-2","tag-gitignore","tag-open-for-editing-in-android-studio"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=21703"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21703\/revisions"}],"predecessor-version":[{"id":21705,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21703\/revisions\/21705"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=21703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=21703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=21703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}