如何将项目从eclipse迁移到Android Studio

本文档详细介绍了如何通过ADT插件将Eclipse项目转换为适用于Android Studio的Gradle构建项目。包括更新ADT插件、导出Gradle构建文件及在Android Studio中导入项目的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

为了使用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文件夹导入成功

       

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值