匯出和匯入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.
相關文章
- 【匯出匯入】匯出匯入 大物件物件
- Oracle資料庫匯入匯出。imp匯入命令和exp匯出命令Oracle資料庫
- kxcel, 方便匯入和匯出 ExcelExcel
- postgresql 資料匯入和匯出SQL
- 【匯入匯出】sqlldr 匯入案例SQL
- MySQL入門--匯出和匯入資料MySql
- 【匯出匯入】% 在匯入匯出中的應用。
- NPOI匯出和匯入Excel,Word和PDFExcel
- 關於idea匯入gradle工程,出現sync failed的問題IdeaGradleAI
- 從Unity 5.6匯出Gradle工程需要修改地方UnityGradle
- DB2 匯入和匯出 命令列和客戶端匯出DB2命令列客戶端
- ES模組化的匯入和匯出
- 匯入和匯出AWR的資料
- 【mysql】資料庫匯出和匯入MySql資料庫
- BCP 資料的匯入和匯出
- ASP.NET Excel匯入和匯出ASP.NETExcel
- NDS的資料匯入和匯出
- 如何使用 JavaScript 匯入和匯出 ExcelJavaScriptExcel
- Activity 流程模型匯入匯出-activity流程模型匯入匯出模型
- Mysql匯入&匯出MySql
- Mysql匯入匯出MySql
- doris匯入匯出
- esayExcel匯入匯出Excel
- 前端實現Excel匯入和匯出功能前端Excel
- IDEA 匯出和匯入jar包教程IdeaJAR
- SQL資料庫的匯入和匯出SQL資料庫
- Oracle資料泵的匯入和匯出Oracle
- ClickHouse 資料表匯出和匯入(qbit)
- Navicat如何匯入和匯出sql檔案SQL
- 資料泵取匯出和匯入(一)
- (轉)excel和sql server的匯入匯出ExcelSQLServer
- 【匯入匯出】Oracle 常用匯入匯出工具集錦Oracle
- vue excel匯入匯出VueExcel
- navlicat 匯入匯出SQLSQL
- mysql 命令匯入匯出MySql
- BCP匯入匯出MsSqlSQL
- mysql匯入匯出慢MySql
- mysql 匯入、匯出命令MySql