{"id":2080,"date":"2018-07-30T09:44:29","date_gmt":"2018-07-30T01:44:29","guid":{"rendered":"https:\/\/tixbay.net\/?p=2080"},"modified":"2018-07-30T09:44:29","modified_gmt":"2018-07-30T01:44:29","slug":"as%e5%88%a0%e9%99%a4iml%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/tixbay.net\/?p=2080","title":{"rendered":"AS\u5220\u9664iml\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u4e00\u76f4\u88ab\u6b64\u95ee\u9898\u56f0\u6270\uff0cgoogle\u540e\u627e\u5230\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<p>I had this annoying issue where Android Studio kept deleting my top-level project file (.iml) whenever I do a gradle sync. For months I had no idea why and Google search doesn\u2019t seem to show this as a common issue. Finally today I got to the bottom of this.<\/p>\n<p>The issue was the casing of the file names. For the project file, I had mixed capital and lowercase, whereas the project folder name was all lowercase. This inconsistency was due to a move of the project from a windows environment to a mac where I had a different folder name.<\/p>\n<p>The fix for this issue was simple: Close the project in Android Studio and delete all the .iml files. Then use File > Import project and select the project folder and this will regenerate all the .iml files. The new .iml files should now match the case of the folder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u88ab\u6b64\u95ee\u9898\u56f0\u6270\uff0cgoogle\u540e\u627e\u5230\u89e3\u51b3\u65b9\u6848\uff1a I had this annoy &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/tixbay.net\/?p=2080\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2080","post","type-post","status-publish","format-standard","hentry","category-moo"],"_links":{"self":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2080"}],"version-history":[{"count":1,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/2080\/revisions"}],"predecessor-version":[{"id":2081,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/2080\/revisions\/2081"}],"wp:attachment":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}