如何在 Eclipse 中导入 Android Studio 项目? [英] How to import Android Studio project in Eclipse?

查看:34
本文介绍了如何在 Eclipse 中导入 Android Studio 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Android Studio 中创建了一个项目,现在我想将该项目导入 Eclipse,有将 Eclipse 转换为 Android Studio 的选项,但是如何将 Android Studio 转换为 Eclipse?

i have made a project in Android Studio , now i want to import that project into Eclipse, there are options to convert eclipse to Android Studio , but how to convert Android studio to Eclipse?

推荐答案

正如其他人所说,完全导入是不​​可能的,但只需尝试手动导入"即可.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.

这篇关于如何在 Eclipse 中导入 Android Studio 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆