我可以将android studio项目导入eclipse吗?

2022-01-23 00:00:00 migration android android-studio eclipse

我想知道是否可以将android studio项目导入eclipse.

I would like to know if it is possible to import an android studio project to eclipse.

到目前为止我尝试过:

  • 直接从eclipse导入:导入一堆奇怪的项目,没有任何代码

  • Import directly from eclipse: imported a bunch of weird projects without any code

InteliJ 似乎有导出到 Eclipse 的功能,但我在 android studio 中没有看到任何对它的引用...

It seems like InteliJ has an export to eclipse feature, but I don't see any reference to it in android studio...

谢谢!

推荐答案

不能直接导入项目,但实现起来并不难:

You cannot import the project directly but it's not to hard to achieve it:

  • 在eclipse中新建一个Android空项目

  • Create a new Android empty project in eclipse

用 Android Studio 项目中的文件覆盖新的 res/ 文件夹和 AndroidManifest.xml 文件

Overwrite the fresh res/ folder and the AndroidManifest.xml file, with the ones from the Android Studio project

基本上,Android 应用程序的基本元素是 java 文件、清单文件和资源.从那里你可以在你最喜欢的 IDE 中重新构建一个项目

Basically the Android application fundamental elements are the java files, the manifest file and the resources. From there you can build back a project in your favorite IDE

相关文章