匯出和匯入Gradle工程
Migrating from Eclipse
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
- Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
- In Eclipse, select File > Export.
- In the window that appears, open Android and select Generate Gradle build files.
- 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
- In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
- Click Import Project.
- Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
- In the following dialog, leave Use gradle wrapper selected and click OK. (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.
相關文章
- 關於idea匯入gradle工程,出現sync failed的問題IdeaGradleAI
- Oracle資料庫匯入匯出。imp匯入命令和exp匯出命令Oracle資料庫
- kxcel, 方便匯入和匯出 ExcelExcel
- MySQL入門--匯出和匯入資料MySql
- NPOI匯出和匯入Excel,Word和PDFExcel
- DB2 匯入和匯出 命令列和客戶端匯出DB2命令列客戶端
- IDEA 匯出和匯入jar包教程IdeaJAR
- 匯入和匯出AWR的資料
- 如何使用 JavaScript 匯入和匯出 ExcelJavaScriptExcel
- Activity 流程模型匯入匯出-activity流程模型匯入匯出模型
- Mysql匯入&匯出MySql
- doris匯入匯出
- esayExcel匯入匯出Excel
- 前端實現Excel匯入和匯出功能前端Excel
- SQL資料庫的匯入和匯出SQL資料庫
- Navicat如何匯入和匯出sql檔案SQL
- Oracle資料泵的匯入和匯出Oracle
- ClickHouse 資料表匯出和匯入(qbit)
- ES模組化的匯入和匯出
- vue excel匯入匯出VueExcel
- navlicat 匯入匯出SQLSQL
- 如何使用JavaScript匯入和匯出Excel檔案JavaScriptExcel
- 匯入已有的工程
- Angular Excel 匯入與匯出AngularExcel
- sqoop資料匯入匯出OOP
- Oracle 資料匯入匯出Oracle
- 資料泵匯出匯入
- .net6 匯入匯出
- Oracle資料匯入匯出Oracle
- phpMyAdmin匯入/匯出資料PHP
- 【docker】docker映象匯出匯入Docker
- ASP.NET 開源匯入匯出庫Magicodes.IE 完成Csv匯入匯出ASP.NET
- Docker容器和映象的建立/匯出/刪除/匯入Docker
- 使用Dbeaver 進行資料的匯入和匯出
- Oracle 12c expdp和impdp匯出匯入表Oracle
- Vue框架下實現匯入匯出Excel、匯出PDFVue框架Excel
- vue + element + 匯入、匯出excel表格VueExcel
- sqoop部署及匯入與匯出OOP
- (十一)Electron 匯入匯出檔案