且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Eclipse 中导入 Android Studio 项目?

更新时间:2022-12-31 10:54:42

正如其他人所说,完全导入是不​​可能的,但只需尝试手动导入"即可.Android 项目的关键文件是 Java 源代码(src 目录)、资源 XML 文件和 Manifest.只需在 Eclipse 中创建一个新的 Android 项目,然后简单地复制这些文件.您可能需要创建一个新的包结构,因此构建必要的包并复制每个源文件,并在必要时重构包名称.如果您使用任何其他库,您可能还必须手动导入它们.

As the others say, a full import is not possible, but just try a manual 'import'. The key files for an Android project are the Java sourcecode (src directory), the resource XML files and the Manifest. Just create a new Android project in Eclipse and simply copy these files over. You may have to create a new package structure, so construct the necessary packages and copy each sourcefile over and refactor the package name if necessary. If you use any additional libraries, you may have to manually import them as well.