# Publishing an Ionic-3 app to Android Store

**URL:** <https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457>\
**Category:** ionic-v3\
**Created:** [February 5, 2018, 5:28am UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457 "2018-02-05T05:28:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![khatauli](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khatauli](https://forum.ionicframework.com/u/khatauli)\
**Post date:** [February 5, 2018, 5:28am UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/1 "2018-02-05T05:28:38Z")

</div>

Hi there, I created a release version of my APK, and then followed  
[https://ionicframework.com/docs/v1/guide/publishing.html](https://ionicframework.com/docs/v1/guide/publishing.html) to try to publish an app, but I am getting the following error:  
You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR (Jar signer xxx.RSA): JAR signature META-INF/xxx.RSA uses digest algorithm SHA-256 and signature algorithm RSA which is not supported on API Level(s) 16-17 for which this APK is being verified.

Any help will be appreciated!

---

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 5, 2018, 6:08am UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/2 "2018-02-05T06:08:52Z")

</div>

It seems you try to sign the Package with an invalid algorithm, instead of using `SHA1withRSA` **use this** `SHA1with*`.

_Since you are using a very old version of Android you have to use older methods of signing._

**Hope this helps!** 🐇

---

<div class="post-metadata">

**Author:** ![khatauli](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khatauli](https://forum.ionicframework.com/u/khatauli)\
**Post date:** [February 5, 2018, 7:44pm UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/3 "2018-02-05T19:44:38Z")

</div>

Cherry,  
Thanks for the reply, but I sense some confusion. I am **not** using very old version of Android.  
I just developed my Ionic app using Ionic-3 (within last 3 months, and I am new to Android development), so I am not sure how I can be using the very old version of Android.

I just need to know where to go to, to find the **latest** documentation to publish (if there is any) for publishing a **latest** Ionic-3 app to **latest** Android!

---

<div class="post-metadata">

**Author:** ![cherry](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cherry/32/149370_2.png) [@cherry](https://forum.ionicframework.com/u/cherry)\
**Post date:** [February 6, 2018, 3:46am UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/4 "2018-02-06T03:46:56Z")

</div>

Well it seems that you are using an older SDK, what you can do is to upgrade your SDK via the SDK manager.

What I would recommend you to get is this version _else if this version gives you also errors try version 27_:

 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/e/c/ec5c2e462207a88c7f03bc9c1b2f4c2df2182a8c.png)

After you installed the package make sure you got the `Android SDK Built-tools` also installed.

 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/9/f/9f7f52d34e731aaa169642de64e79781d4e09b04.png)

Then you can start with the Guide you already posted. 🙂

---

<div class="post-metadata">

**Author:** ![khatauli](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khatauli](https://forum.ionicframework.com/u/khatauli)\
**Post date:** [February 6, 2018, 5:03am UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/5 "2018-02-06T05:03:57Z")

</div>

I read that Google deprecated using RSA algorithm for building keystore.  
Here is the link:

> **[How to Migrate Your Android App’s Signing Key](https://guardianproject.info/2015/12/29/how-to-migrate-your-android-apps-signing-key/)**
>
> It is time to update to a stronger signing key for your Android app! The old default RSA 1024-bit key is weak and officially deprecated.
> What? The Android OS requires that every application installed be signed by a digital key. The purpose behind...

Given this article, I have a feeling that this is the command which is  
causing the problem.

keytool -genkey -v -keystore planetcal.keystore -alias PlanetCal -keyalg  
RSA -keysize 2048 -validity 10000

For password: I used “Testing123”

_Anyway, about my installed versions (I believe they are latest):_  
I installed Android Studio a few days back, and this is what I see at my  
end, which looks fairly latest to me!

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/a/9/a9c3dcc5fe29ca2ae45f66b674071de3821f1260.png)

Also, the build tools version I am using for is 27.0.3 (For ZipAlign tool).

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/f/2/f2fe7a70af564463582a44005271f224b9b2d4d7.png)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:51pm UTC](https://forum.ionicframework.com/t/publishing-an-ionic-3-app-to-android-store/120457/6 "2021-07-19T21:51:48Z")

</div>


