为了使用AndroidStudio,需要利用ADT从Eclipse中导出Gradle build files。按照官方文档中记载的步骤,
1、Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
http://dl.google.com/android/ADT-23.0.7.zip下载该 ZIP 包,然后在 Eclipse 中选择Help -> Install New Software... -> Add... -> Archive... -> 选择刚下载的ZIP文件,然后一路安装就可以了。
2、In Eclipse, select File > Export.
3、In the window that appears, open Android and select Generate Gradle build files.
4、Select the project you want to export for Android Studio and click Finish.
此时工程根目录下会生成一个build.gradle文件和一个gradle文件夹,继续执行以下步骤:
5、In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
6、Click Import Project.
7、Locate the project you exported from Eclipse, expand it, select the build.gradle file and clickOK.
备注:select the build.gradle file and clickOK.报错 The project file specified already exists.-- 直接选中api文件夹导入成功