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深入精要
140
|
第九章:建置工具
執行完此指令,你便可以閱讀該輸出並且判斷確切的錯誤位置。此指令的輸出如下
所示:
E/AndroidRuntime( 1584): FATAL EXCEPTION: main
E/AndroidRuntime( 1584): java.lang.NullPointerException
E/AndroidRuntime( 1584): at com.tools.demo.ToolsDemoActivity
$1.onClick(ToolsDemoActivity.java:36)
E/AndroidRuntime( 1584): at android.view.View.performClick(View.java:4084)
E/AndroidRuntime( 1584): at android.view.View$PerformClick.run(View.java:
16966)
...
[Page-144]
Zipalign
Zipalign
是一個最佳化
APK
檔案的工具,它將檔案內的所有未壓縮的資料與檔案的開
頭對齊,這讓
app
在執行時花費較少的
RAM
;此工具應當在釋出每個
APK
給使用者
之前執行。若你是使用匯出精靈來打包程式碼,則會自動執行
Zipalign
Zipalign
也可以透過命令列模式執行,這應當只在
.apk
檔案已經被私密金鑰簽署之後才
執行;否則,簽署會破壞掉對齊的檔案。
zipalign inFile.apk alignedFile.apk ...
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