Empty folders when import existing Android project into Eclipse

南楼画角 提交于 2019-12-11 20:37:43

问题


I'm trying to import an Android project into Eclipse by using File > Import > Android > Existing Android Code Into Workspace.

After project imported I found that src and res folder are empty !!! I don't know why I have this problem, any idea to solve this ??

Thanks,


回答1:


Really annoying indeed. I had the same problem with destroyed files when importing an existing project into Eclipse (Java ADT Package 22.0.5), when I previously had copied the project files into the workspace.

Solution: I copied the original (not the destroyed) project files to another directory and then imported them as "Existing projects into workspace" without any problems.




回答2:


MichaelSwede post was True, you Should Not Copy Paste The [Android Project] into WorkSpace Directly

1>The "WorkSpace" should contains only [.metadata]

2>Then Open Eclipse, Locate that "WorkSpace"

3>Then Import>Existing Android Project From Another Location except "WorkSpace"




回答3:


Use File -> Import -> Existing Project into Workspace instead.



来源:https://stackoverflow.com/questions/16599358/empty-folders-when-import-existing-android-project-into-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!