Export a signed command-line application package

So far, I am making the apk file in the usual way: Andoid Tools → Export a signed application package ...

and there I give a key and an alias and how it makes my apk file, which I publish on the market.

Now I want to do the same with the terminal

I am trying to use the ant command with: ant release , but it gives me an unsigned application package.

+6
source share
1 answer

If you add lines of the following form to the file build.properties (SDK pre 14) or ant.properties (SDK 14 and above)

Then, if you call 'ant release', signing with the correct passwords will be automatically done for you

(Assuming your release key store is located at: c: /users/you/my-release-key.keystore and your release key alias: your_release_alias)

 key.store=c:/users/you/my-release-key.keystore key.alias=your_release_alias key.store.password=YourKeystorePassword key.alias.password=YourKeyaliasPassword 

.

+5
source

Source: https://habr.com/ru/post/903552/


All Articles