我如何将项目从 Eclipse 导入到 android studio [英] how could I import project from eclipse to android studio
问题描述
如你所见,这个错误来自AndroidManifest.xml,它发生在android studio,我查了很多资料,不知道是怎么引起的,如果你能帮我一下,我很感激.
as you can see, this error comes from AndroidManifest.xml, it occurs in android studio, I looked up a lot information, and don't know how it causes, I appreciate you if you could give me a hand.
我想补充的另一件事,该活动在此文件中显示为非法.
the other thing I want to add, the activity showed illeagal in this file.
推荐答案
为此,您首先必须从 Eclipse
- 更新您的 Eclipse ADT 插件(您必须拥有 22.0 或更高版本).
- 在 Eclipse 中,选择文件 > 导出.
- 在出现的窗口中,打开 Android 并选择生成 Gradle 构建文件.
- 选择要为 Android Studio 导出的项目,然后单击完成".
您选择的项目仍保留在同一位置,但现在包含一个 build.gradle 文件并已准备好用于 Android Studio
Your selected projects remain in the same location but now contain a build.gradle file and are ready for Android Studio
现在您必须导入项目到Android Studio
- 在 Android Studio 中,选择文件">导入项目".
- 找到您从 Eclipse 导出的项目,选择项目的根目录并单击确定".
- 选择从现有源创建项目,然后单击下一步.
- 按照演练完成导入过程.
特别说明
我遇到了同样的错误,因为在 Eclipse 中未生成 Gradle 构建文件.
I faced the same error because of not generated Gradle build files in Eclipse.
这篇关于我如何将项目从 Eclipse 导入到 android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!