介绍几个用于 Android 开发的工具

pkzp6639 8年前
   <h2><strong>计算库有多少个函数</strong></h2>    <p>Android 应用有个 65K 函数的限制,所以为了避免超过这个限制,有时候需要知道所引用的第三方库有多少个函数,来确定是不是使用第三方库。这个网站就是用来统计第三方库有多少个函数的,使用方式很简单,打开这个网站,在里面输入库的名称,然后会提示具体的库名字和版本号(和 gradle 依赖项引用的方式一样)。</p>    <p><img src="https://simg.open-open.com/show/e1ba06de286a1db81955369c771c8fbd.png"></p>    <h2><strong>Stetho</strong></h2>    <p><a href="/misc/goto?guid=4958867210220623934" rel="nofollow,noindex">Stetho</a> 是 非死不可 开发的一个调试应用的浏览器工具。通过 Stetho 可以很方便的查看应用网络流量数据,还可以查看编辑数据库和 shared preference。</p>    <p>同时还可以使用 <a href="/misc/goto?guid=4959716305725318233" rel="nofollow,noindex">Fast-Android-Networking</a> 来调试网络响应。</p>    <p>注意,在正式发布版本中不要启用 Stetho 。 Stetho 只应该在测试版本中使用。</p>    <h2><strong>LeakCanary</strong></h2>    <p><a href="/misc/goto?guid=4958874766191309432" rel="nofollow,noindex">LeakCanary</a> 来之 Square 的内存泄露检查工具。</p>    <h2><strong>APK Method Count</strong></h2>    <p><a href="/misc/goto?guid=4958870212758427496" rel="nofollow,noindex">APK Method Count</a> 可以查看 APK 中的函数。</p>    <p>译者注:可能 <a href="/misc/goto?guid=4958973896930631261" rel="nofollow,noindex">classyshark</a> 是更好的选择。</p>    <h2><strong>Android Asset Studio</strong></h2>    <p><a href="/misc/goto?guid=4959555277910092632" rel="nofollow,noindex">Android Asset Studio</a> 用来生产各种图片资源的工具。</p>    <h2><strong>Buck</strong></h2>    <p><a href="/misc/goto?guid=4959641676959213040" rel="nofollow,noindex">Buck</a> 是来自 非死不可 的系统建构工具。鼓励使用比较小的、可以重用的模块并且支持跨平台的多种语言。</p>    <h2><strong>GenyMotion</strong></h2>    <p><a href="/misc/goto?guid=4958968975981073888" rel="nofollow,noindex">GenyMotion</a> 是一个 Android 虚拟机,运行速度很快,提高测试效率。详细情况参考这里: <a href="/misc/goto?guid=4959716305991113522" rel="nofollow,noindex">GenyMotion目前最快的Andr​​oid的模拟器</a> .</p>    <h2><strong>Material Design Icons</strong></h2>    <p><a href="/misc/goto?guid=4958971640576509411" rel="nofollow,noindex">Material Design Icons</a> 是一个用来生成符合 纸墨设计(Material Design) 风格图标的工具。</p>    <p> </p>    <p>来自:http://blog.chengyunfeng.com/?p=1018</p>    <p> </p>