将 Eclipse 项目导入 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?
详情请参考截图
最后,我找到了一个方法..我在文本编辑器中打开了 project.properties
文件并删除了相关的行appcompat
.然后我设法毫无错误地导入了该项目.成功导入后,我添加了 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.