Migrating from Eclipse

See also

  • Eclipse Compatibility Mode
  • FAQ on Migrating

If you've previously developed for Android using Eclipse and would like to migrate to Android Studio, you should export your projects from Eclipse in order to generate Gradle build files. You can then import your project into Android Studio.

Export from 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 project you want to export for Android Studio and click Finish.

Your selected project remains in the same location but now contains a build.gradle file and is ready for Android Studio.

Import into Android Studio

  1. In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
  2. Click Import Project.
  3. Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
  4. In the following dialog, leave Use gradle wrapper selected and clickOK. (You do not need to specify the Gradle home.)

Now that your project is imported to Android Studio, read Tips and Tricks for some help getting started.

Note: It's possible to import an existing Android project to Android Studio even if you don't generate a Gradle build file from Eclipse—Android Studio will successfully build and run projects using an existing Ant build file. However, in order to take advantage of build variants and other advanced features in the future, we strongly suggest that you generate a Gradle build file using the ADT plugin or write your own Gradle build file for use with Android Studio. For more information about the Gradle build system, see the Gradle Plugin User Guide.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 如何用vue实现网页截图你知道吗
  2. JavaScript中二维数组的创建技巧
  3. PHP基础 -(二)分支与循环、php模板语法
  4. 彻底学会快速部署vue框架,一篇就够了
  5. 变量与函数
  6. 原生购物车案例使用vue改写
  7. 解密跨境服装电商Shein,看千亿美元估值“
  8. vue中jsonp的使用方法
  9. ffmpeg / libx264 build for ANDROID
  10. Android实验七之SQLite数据库存储