运行ADT项目时自动进行APK签名 [英] Automatic APK signing when running ADT projects

查看:156
本文介绍了运行ADT项目时自动进行APK签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我习惯于在手机上开发和调试Android应用程序,这很快。
当我没事,我输出一个已签名的APK上传到市场。



现在我使用Google Maps API,我必须添加一个签名到清单,此签名与我用于签署APK的版本相关联。所以我可以导出一个签名的APK来测试我的手机,但它不是自动的,我不能再查看LogCat。



我可以指示ADT + Eclipse自动 - 将APK上传到我所附的手机之前签名?



我错过了一点吗?

解决方案

我不认为你可以直接通过ADT来做到这一点。但是您可以使用ant来构建支持签名的功能( http://developer.android .com / tools / building / building-cmdline.html )。



只需设置key.store,key.alias和key.store.password ,ant.properties文件中的key.alias.password属性。



您还可以在eclipse中触发蚂蚁构建,并添加一个新的蚂蚁目标来安装/启动应用程序在您的设备上


I'm used to develop and debug android apps on my phone, it's pretty faster. When I'm ok, I export a signed APK to upload to the market.

Now I use Google Maps APIs, I must add a signature to the Manifest, this signature is associated with my key I use to sign APKs for release. So I am able to export a signed APK to test on my phone, but it's not automated and I cannot view LogCat anymore.

Can I just instruct ADT+Eclipse to auto-sign the APK before uploading it to my attached phone?

Am I missing a point?

解决方案

I don't think you can do this via ADT directly. But you could use ant to build instead which supports signing (http://developer.android.com/tools/building/building-cmdline.html).

Just set the key.store, key.alias, and key.store.password, key.alias.password properties in the ant.properties file.

You can also trigger ant builds from within eclipse and add a new ant target to install/launch the app on your device

这篇关于运行ADT项目时自动进行APK签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆