将Eclipse项目导入Android Studio时出错 [英] Error on importing an Eclipse project into Android Studio
问题描述
我试图将Eclipse中完成的项目导入到Android Studio中。导入时,我收到以下错误:
I'm trying to import a project done in Eclipse to Android Studio. While importing, I'm getting the following error:
"There are unrecoverable errors which must be corrected first"
Library reference ../../../../workspace/android-support-v7-appcompat could not be found
我尝试将appcompat文件夹复制到项目的根目录,仍然相同的错误。如何解决?
I tried copying appcompat folder to the root directory of project, still same error. How can I resolve it?
请参阅屏幕截图了解更多详情
Please refer the screenshot for more details
推荐答案
最后,我找到了一种方法。我打开了项目。属性
文件,并删除与 appcompat
相关的行。然后我设法导入项目没有错误。成功导入之后,我加上了一个依赖关系,作为Gabriele Mariotti回答的 appcompat
。感谢Gabriele Mariotti。
Finally, I found a way..I opened the project.properties
file in a text editor and removed the line which was related to appcompat
. Then I managed to import the project without errors. After successful import, I added appcompat
as a dependency as answered by Gabriele Mariotti. Thanks Gabriele Mariotti.
这篇关于将Eclipse项目导入Android Studio时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!