用libries导入eclipse项目到android studio

时间:2015-05-22 03:45:43

标签: java android eclipse

我得到了eclipse项目,我需要使用Android Studio构建它

我的项目文件夹就像这样

-Project Foler     - MyProjet     - libs(所有库项目都在此文件夹中)

我使用的是Android Studio导入方法。导入主项目后,我看到MyProject和库项目已导入。

但我无法构建项目,缺少所有库项目参考。

能告诉我将eclipse项目导入android studio的最佳方法是什么。

谢谢, 亚历

1 个答案:

答案 0 :(得分:0)

从Eclipse导出

    1.Update your Eclipse ADT Plugin (you must have version 22.0 or higher).

    2.In Eclipse, select File > Export.

    3.In the window that appears, open Android and select Generate Gradle build files.

    4.Select the projects you want to export for Android Studio and click Finish.

Your selected projects remain in the same location but now contain a build.gradle file and are ready for Android Studio.

导入Android Studio

1.In Android Studio, select File > Import Project.

2.Locate a project you exported from Eclipse, select the project's root directory and click OK.

3.Select Create project from existing sources and click Next.

4.Follow the walk-through to complete the import process.

/_cluster/settings