简体   繁体   English

从eclipse中的现有源创建android项目

[英]Create android project from existing source in eclipse

I try to create an android project from existing source and when I choose the folder I get an error : An existing directory name must be specified. 我尝试从现有源创建一个android项目,当选择文件夹时出现错误:必须指定现有目录名称。

I dont understand why I get this error I choose the directory of the project. 我不明白为什么会收到此错误,因此选择了项目目录。

image link : http://i.stack.imgur.com/bZLDR.png 图片链接: http : //i.stack.imgur.com/bZLDR.png

I realy need help... 我真的需要帮助...

Solution is to select the parent directory. 解决方法是选择父目录。 So if you already have a structure 所以如果你已经有了一个结构

parent
    project
        <AndroidManifest.xml and friends>

then select "parent" instead of "project". 然后选择“父项”而不是“项目”。 Use the "Browse" button instead of copy-pasting the path. 使用“浏览”按钮,而不是复制粘贴路径。

Well, after you have selected the project from the directory, and u still see the error symbol, 好,从目录中选择项目后,您仍然会看到错误符号,

now dont make any changes to the directory at all, but try to toggle the radio buttons, and if possible even try to check and uncheck the check box, finally bring everything as it was..... the check box unchecked, and radio button at create an android project from existing source selected, u will see the error is gone, that happens in my eclipse 现在根本不对目录进行任何更改,但尝试切换单选按钮,如果可能,甚至尝试选中并取消选中该复选框,最后将所有内容按原样.....选中该复选框,然后选中在从现有来源中选择一个android项目中创建一个android按钮,您将看到错误消失了,发生在我的日食中

Goto: 去:

File > Import > Existing Projects into Workspace 文件>导入>现有项目到工作区

and select the root folder of your project. 并选择项目的根文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM