Skip to Content
Android Developer Tools深入精要
book

Android Developer Tools深入精要

by Mike Wolfson
July 2014
Intermediate to advanced
248 pages
5h 19m
Chinese
GoTop Information, Inc.
Content preview from Android Developer Tools深入精要
使用
Maven
工具
|
145
build
執行
check
assemble
任務。
clean
刪除由建置產生的檔案。
要查看所有可能的任務及其相關性的列表,執行:
gradle tasks --all
Ant
相似,你可以在單一指令中執行多個任務,而它們會依序執行:
gradle clean build
Eclipse
產生
Gradle
建置檔案
你可以從現有的
Eclipse
專案產生
Gradle
建置;這可以新增對應的
Gradle
建置檔案而
不會變動到你現有的專案。執行的步驟為:
[Page-149]
若你是使用新的
Android Studio IDE
,則可以不用產生
Gradle
建置檔案而匯入現
有專案,且可以在
Android Studio
中成功完成建置以及執行,但之後無法使用建
置變化或是其他進階的功能。若你計畫使用
Android Studio
,則強烈建議你新增
一個
Gradle
建置檔(或自己寫一個)。
1.
ADT
外掛程式更新至
22
或更高的版本。
2.
點選
File
Export
3.
在下個對話框中選擇
Android
Generate Gradle build files
4.
選擇你想要匯出的專案,並點擊「
Finish
」。
使用
Maven
工具
像是大多數的
Android
開發事項一樣,開發者不會侷限在使用支援的工具;
Android
其他建置工具也有很大的支援,包括
Maven
想了解更多關於
Maven
的整合,建議查看
Sonatype
裡好用的免費資源,特別是與
Android ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android 高效能多執行緒

Android 高效能多執行緒

Anders Goransson
深入淺出 jQuery

深入淺出 jQuery

Ryan Benedetti, Ronan Cranley
HTML5 錦囊妙計

HTML5 錦囊妙計

Christopher Schmitt, Kyle Simpson

Publisher Resources

ISBN: 9789863470861