# How to sign a APK file

**URL:** <https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [July 1, 2014, 9:40am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908 "2014-07-01T09:40:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [July 1, 2014, 9:40am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/1 "2014-07-01T09:40:24Z")

</div>

Well the title says it all. When I’m trying to upload my alpha release to the google developer console for testing i get the following error

![apk_signed_error.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/884a682a22361ec3bf5416f324bdfbbe48cd51a1.png)&stc=1

I can’t seem to find any UE4 documentation mentioning how to sign a APK file? A tutorial or how to would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [July 1, 2014, 5:16pm UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/2 "2014-07-01T17:16:42Z")

</div>

Got it working. I’m thinking about writing a how to on this topic as there’s no documentation from Epic at all.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a4b711e61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a4b711e61](https://forums.unrealengine.com/u/anonymous_user_a4b711e61)\
**Post date:** [July 3, 2014, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/3 "2014-07-03T23:10:25Z")

</div>

That would be great if you could, because I’ve been having troubles with that whole process.

---

<div class="post-metadata">

**Author:** ![KRushin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KRushin](https://forums.unrealengine.com/u/KRushin)\
**Post date:** [July 4, 2014, 12:17am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/4 "2014-07-04T00:17:34Z")

</div>

No guarantee but i may upload a video of how to package, sign and upload and get a game on google play store (basically everything after your finished developing the game). Then maybe a seperate video for AdMob/Google Play Game Services (Achievements/Leaderboard).

Although not thorough , look at this answer hub report [Unable to publish to play store, even if "Shipping" packaging is selected - Mobile - Unreal Engine Forums](https://answers.unrealengine.com/questions/41541/unable-to-publish-to-play-store-even-if-shipping-p.html)

---

<div class="post-metadata">

**Author:** ![brianheagney](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brianheagney/32/706476_2.png) [@brianheagney](https://forums.unrealengine.com/u/brianheagney)\
**Post date:** [July 12, 2014, 12:50am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/5 "2014-07-12T00:50:00Z")

</div>

Yeah, it took me a LOOOONNNGGGG time to finally figure this out, even after reading much of the documentation. I’m assuming that this is only a problem for people who have never ever created a mobile application. Even after reading all of the documents about signing apks, I was still pretty unsure. Then I watched this quick video:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/9/879a29c8b9739f2844d334d8ac724c6f52b67e15.jpeg "Using keytool to make a release key for android.") ](https://www.youtube.com/watch?v=k0g0PzzkUyo)

It basically covers the steps outlined in another link that was cited here ( [Sign your app &nbsp;|&nbsp; Android Developers](http://developer.android.com/tools/publishing/app-signing.html#cert) ) but I guess I’m the kind of person who needs to see someone do it first. I didn’t realize you had to access the keytool from the command line until I watched the video I linked to above.

Anyway, after I watched that basic video, and after I was able to reproduce it, and do the same thing, I was still unsure of what to do. Then I read the following post:

> **[Licensing Android Package](https://forums.unrealengine.com/questions/20685/licensing-android-package.html)**
>
> Hi, I want to know how I can license my android package with UE4. I read the documention about it on android site and ue4 but I don’t know how I can license this package so that I can upload it on the Play Store(example). Thanks

That post tells you how to alter the main SigningConfig.xml file. I did that in notepad. I then saved it to my project’s folder. Then, when I went to build the project for shipping, it finally worked!

However, even though I was finally able to upload my .apk to Google Play, I have not been able to figure out how to upload the .obb files. I was live-chatting with their help, and they were like, “when you upload your .apk, it will ask you to upload your extension files”, but I did that so many times, and have not yet seen anything asking me to upload the extension files. So, good luck with that.

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [July 12, 2014, 10:36am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/6 "2014-07-12T10:36:46Z")

</div>

Step By Step

It’s quite easy.

_ **Making a key.** _

> [@](#):
>
> keytool -genkey -v -keystore C:\Users\*_YourUserName_\*\*_YourAppName_\*.keystore -alias **YourAppName** -keyalg RSA -keysize 2048 -validity 10000

Change YOURUSERNAME to your windows username  
Change YOURAPPNAME to your app/game name

Then in

C:\Users\*_YourUserName_\*\Documents\Unreal Projects\*_YourAppName_\*\Build\Android

open the file \*\*SigningConfig.xml

\*\*

> [@](#):
>
> \<keyalias\>Same as key alias above so **YourAppName** \</keyalias\>  
> \<keystore\>full path to keystore file from above - C:\Users\*_YourUserName_\*\*_YourAppName_\*.keystore\</keystore\>  
> \<keystorepassword\>made above during the generation of your key\</keystorepassword\>  
> \<keypassword\>_sameaskeystore_\</keypassword\>

This is it. This way you will sign your APK file so you can upload it to the Google Play Store and it will be signed. Ill update this topic to add some screenshots of the process with the above you should be able to sign your APK file.

\*\*_To read your keyfile:_  
\*\*

> [@](#):
>
> keytool -list -v -keystore C:\Users\*_YourUserName_\*\*_YourAppName_\*.keystore

---

<div class="post-metadata">

**Author:** ![JesseLord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JesseLord](https://forums.unrealengine.com/u/JesseLord)\
**Post date:** [October 7, 2014, 8:32pm UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/7 "2014-10-07T20:32:34Z")

</div>

In addition to verify it was signed do this

> [@KillerSneak;94412](#):
>
> It’s quite easy.
> 
> _ **Making a key.** _
> 
> Change YOURUSERNAME to your windows username  
> Change YOURAPPNAME to your app/game name
> 
> Then in
> 
> C:\Users\*_YourUserName_\*\Documents\Unreal Projects\*_YourAppName_\*\Build\Android
> 
> open the file \*\*SigningConfig.xml
> 
> \*\*
> 
> This is it. This way you will sign your APK file so you can upload it to the Google Play Store and it will be signed. Ill update this topic to add some screenshots of the process with the above you should be able to sign your APK file.
> 
> \*\*_To read your keyfile:_  
> \*\*

To verify that it is signed do this!  
$ jarsigner -verify -verbose -certs C:\PathToAPK\YourAppName.apk

---

<div class="post-metadata">

**Author:** ![Fa1alErr0r\_TTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fa1alErr0r\_TTV](https://forums.unrealengine.com/u/Fa1alErr0r_TTV)\
**Post date:** [October 27, 2014, 9:11pm UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/8 "2014-10-27T21:11:44Z")

</div>

Not sure if you still need help with this but I would like to ad my experience in hopes it’ll help.

I have NEVER gotten unreal 4 to successfully sign an apk for me. Not sure what i’m doing wrong but I ended up doing it manually which takes me about a minute.  
package for android (I use etc1 for max compatibility).  
Once its made I move it to my jdk bin folder (which is C:\NVPACK\jdk1.6.0\_45\bin on my computer).  
Once its there I press shift+right click and open a cmd window.  
Once I have that open, I simply follow the steps at the bottom of the page here: [http://developer.android.com/tools/publishing/app-signing.html](http://developer.android.com/tools/publishing/app-signing.html) under Signing your APP Manually  
Don’t forget to also zipalign your apk.

Ive done this multiple times for our game Lux Protocol, which is now on google play. Hopefully it helps as this took me forever to figure out.

---

<div class="post-metadata">

**Author:** ![kShadowcraft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kShadowcraft](https://forums.unrealengine.com/u/kShadowcraft)\
**Post date:** [February 17, 2015, 5:18am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/9 "2015-02-17T05:18:40Z")

</div>

Making a key part

> [@KillerSneak;94412](#):
>
> It’s quite easy.
> 
> _ **Making a key.** _
> 
> Change YOURUSERNAME to your windows username  
> Change YOURAPPNAME to your app/game name
> 
> Then in
> 
> C:\Users\*_YourUserName_\*\Documents\Unreal Projects\*_YourAppName_\*\Build\Android
> 
> open the file \*\*SigningConfig.xml
> 
> \*\*
> 
> This is it. This way you will sign your APK file so you can upload it to the Google Play Store and it will be signed. Ill update this topic to add some screenshots of the process with the above you should be able to sign your APK file.
> 
> \*\*_To read your keyfile:_  
> \*\*

So, when you say keytool -genkey -v -keystore , what does this mean?

---

<div class="post-metadata">

**Author:** ![minderaser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@minderaser](https://forums.unrealengine.com/u/minderaser)\
**Post date:** [February 19, 2015, 3:06am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/10 "2015-02-19T03:06:35Z")

</div>

It means you type that line into the command prompt (on Windows). You must have the JDK installed and configured in the path for keytool to be found – it’s not part of the Android SDK.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0500cf20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0500cf20](https://forums.unrealengine.com/u/anonymous_user_0500cf20)\
**Post date:** [August 1, 2016, 2:43am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/13 "2016-08-01T02:43:01Z")

</div>

Hi all,

Since this thread is a bit scattered and the process for .apk signing has changed since it was started, I created an Unreal Wiki page that goes step by step through the most current process (as of Unreal 4.12). Link here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

These instructions are based on my own experience struggling to correctly sign an .apk app for distribution recently. If you find any errors or omissions in this walkthrough, please let me know and I’ll do my best to correct it ASAP.

---

<div class="post-metadata">

**Author:** ![Bushey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bushey](https://forums.unrealengine.com/u/Bushey)\
**Post date:** [September 27, 2016, 11:46am UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/14 "2016-09-27T11:46:34Z")

</div>

Hi Monotoan, thanks very much for making this Wiki - as this part of the process has had me stumped. So there is one step I also need to make which was messing me up and that is the Android manifest. Is this something that you can help with too please?

Many thanks,

Paul

---

<div class="post-metadata">

**Author:** ![VisiblePaper4839](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VisiblePaper4839](https://forums.unrealengine.com/u/VisiblePaper4839)\
**Post date:** [August 9, 2026, 9:23pm UTC](https://forums.unrealengine.com/t/how-to-sign-a-apk-file/6908/15 "2026-08-09T21:23:14Z")

</div>

I was trying to understand APK signing and this thread answered a few basic questions for me. The part about using the correct keystore and signing the APK before installing or sharing it was especially helpful. I was confused about this step before.
