Android的 - 没有名为Android项目项目、Android

2023-09-07 15:19:11 作者:失物招領

荡。对不起,我在这里问这么多不同的问题。所以,我有我导入到我的工作区中的Andr​​oid项目。然后,修复任何构建路径错误之类的东西后,我去将它导出。当我第一次进口的,它是自动命名MainActivity。所以,我想出口,但我得到的错误没有名为MainActivity Android项目。我查了一下文件夹在我的工作空间。我搜索,但没有找到工作的答案。我想日食认为这code以别的东西。我几乎可以肯定,当我导入它,我选择要导入已有的android应用项目...

Dang. I'm sorry for asking so many different questions here. So, I have an android project that I imported into my workspace. Then, after fixing any build path errors and stuff, I went to export it. When I first imported it, it was automatically name "MainActivity". So, I tried to export it but I get the error "There is no android project named MainActivity. I checked and the folder is in my workspace. I searched but couldn't find a working answer. I guess eclipse sees this code as something else. I'm almost positive when I imported it I selected to import exisiting android application project...

推荐答案

您正在尝试运行库项目,如果该项目不在库右键单击该项目>>属性>>安卓>>在右侧面板向下滚动>>取消选中 isLibrary

You are trying to run your Library Project, if the project is not libraryRight Click on the Project >> Properties >> Android >> In the right Panel Scroll down >> Uncheck isLibrary