Automatic APK signing when running ADT projects

2020-04-11 05:55发布

问题:

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?

回答1:

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