HomeХобби и стильRelated VideosMore From: John's Android Studio Tutorials

How to generate signed apk for google play production distribution upload Android Studio

153 ratings | 23747 views
In this video I am going to show you how to: export, create and generate a signed apk. Then I will show you how to upload the apk to google play developers console for production and release of your app. in Android Studio Version 2.1.3 ==================================== ABOUT: Ever wanted to make android apps? Now is your chance to learn from my Android Studio tutorial videos. I started this youtube channel in 2015. I set out with the goal of producing quick, but informational videos that only contain information relevant to the topic at hand. I wanted to set up a channel where new and even experienced programmers could search for whatever they are working on, and they would find a short, quick, and accurate video that pertains to their needs. What does all this mean? Well basically when you find yourself watching one of my tutorial videos, you can relax knowing that you will only see and hear content directly relating to the topic you are currently pursuing. That means no long lengthy intros, no listening to someone go off about random things in their youtube channel that you couldn't careless about. It means I will get right to the point. It means the video will be quick in an effort to show my respect for your time, and that I want you to be satisfied with you have viewed. Even though I am only Android Studio for these tutorials, you should still be able to follow along for the most part in other programs like eclipse. ==================================== INTERACTION: Are you struggling? Is there a little problem that you just cant figure out? Well I'm here to help! You can also leave feedback, suggestions, video ideas, and whatever else you may need. To reach me you can comment below, email me, or even refer to my website: http://johnsandroidstudiotutorials.weebly.com/ johns.as.tutorials@gmail.com
Html code for embedding videos on your blog
Text Comments (58)
Gamers Dignity (2 months ago)
HELP!!!!!!!!!!!!! You uploaded an APK that is signed with a restricted certificate. You need to upload an APK signed with your own certificate.
Just upload an apk that is production not debug.
gao ngake (2 months ago)
thank you soo much john's.it works like a charm
Thank you so much! I am excited to hear how much the video impacted you!
Mizanur Rahaman (3 months ago)
In my AS 3.0.1 there are no "generate signed apk" what should i do please help me buddy !
Switch to a version that has that option
I'mCj Inc. (3 months ago)
I don't know whats happening... In my Android Studio "Generate apk" option is not available... Please can anyone tell me what to do?
No problem, I am happy to help!
I'mCj Inc. (2 months ago)
John's Android Studio Tutorials Thanks for reply.. Well I already fix it.
Is is missing entirely or just blurred?
Da Hulk (6 months ago)
So i usually use a rare way to sign it but i never upload it to playstore this is just for manual download. So what i do is it signs it but when i decompile one or compile it i use apktool not android studio. Therefor i have the apk built and i am just trying to sign it. How do i do that here and i have followed this way but i only get the keystroke please help thanks
This should help https://shatter-box.com/knowledgebase/android-apk-signing-tool-apk-signer/
Rahul Sharma (6 months ago)
how to solve this problem while generating signed apk in android studio Key was created with errors: Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore C:\Users\rahul\ketstoree.jks -destkeystore C:\Users\rahul\ketstoree.jks -deststoretype pkcs12".
make sure you have spelled keystore correctly
Rajat Palankar (6 months ago)
sir when dubug and and run app it works 100% but when I generate signed app the app is getting forced stoped why??
Possible solutions https://stackoverflow.com/questions/14661730/why-my-signed-apk-crashes
Rajat Palankar (6 months ago)
sir when dubug and and run app it works 100% but when I generate signed app the app is getting forced stoped why??
Awesome, glad you got it working
Rajat Palankar (6 months ago)
problem solved sir
Possible solutions https://stackoverflow.com/questions/14661730/why-my-signed-apk-crashes
TigrisLion (7 months ago)
Do you live in Iowa. If so, where at?
Oh about two hours
TigrisLion (7 months ago)
How far from Cedar Rapids. Maybe you and I can start making games. I use Unity and Construct 2.
Yes, I live in central Iowa
Aulia Taufik Putiharjo (8 months ago)
what os do you used?
+Aulia Taufik Putiharjo in that video I was using Ubuntu
Do i have to pay to upload my app on Google Store ?
The benefit of google play vs. apple app store, is you pay $20 one time and your set, whereas apple is $100 per year.
Saif uddin (9 months ago)
Jar2 or full apk release , Which one we should click????
Apk
arun prasad (9 months ago)
Thanks, the flavor or variants missed. had to go to stackoverflow
Thank you for watching, I hope everything works out.
Youssef Omari (10 months ago)
I face this error when generating signed apk FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':shrinkFlavorReleaseMultiDexComponents'. > java.io.IOException: The output jar [C:\Users\scorp\Desktop\SuperFoxRun\build\intermediates\multi-dex\flavor\release\componentClasses.jar] must be specified after an input jar, or it will be empty.
Hmm, that is an odd error. I am not sure what to do about that. Maybe invalidate caches?
Terry Gadoury (11 months ago)
I am far from a developer but I need this to finish my Google application. The way you are explaining is short and simple. I like it so I tried to follow it. First I downloaded Android Studio. From there, I can't seem to find where I can find the area that you are in.
You need a project opened to access the signed apk generation.
Terry Gadoury (11 months ago)
No, I am not a programmer. I wouldn't know how to start a project to save my life. Lol!
Do you have a project in android studio? if so open it. Then click the build button, then the generate signed apk button.
Richmond Gingingon (1 year ago)
Is it possible to make a single apk for all android version?
When you run the app on a non kit kat device does android studio give you an error or the device, or both?
Richmond Gingingon (1 year ago)
I follow your instruction and created the apk. It only works on kitkat version. I'm trying to create apk for kitkat until marshmallow version.
I am afraid I am misunderstanding your question. You want one apk that works on all android versions? That is what I showed in the video. If you are trying to reach the less common earlier versions of android you will need to change settings. In the build.gradle file you will see lines like this: compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.sartainstudios.topicjournal" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" You will want to change the min sdk version to version 1. If you do this you will be able to reach all versions of andorid. however since you will lose certain features, and because nobody uses version 1, you are better off targeting people with version 15 and above.
Richmond Gingingon (1 year ago)
I have watched other tutorials but I still don't get it right. Can you show how?
monlight2320 (1 year ago)
Perfect tutorials many thanks
You are welcome, glad you enjoyed.
Mohammed Osman (1 year ago)
Hi john, I created apk file by following ur video but the file I generated is empty it's only just a 3kb apk file has created n my android mobile say no apps can perform the action?? Plz me a solution.
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
You could use something like this apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.something.something" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.1.0' testCompile 'junit:junit:4.12' }
Mohammed Osman (1 year ago)
John's Android Studio Tutorials, ok thanks, but i think its a gradle sync problem in build verient module is empty.
I am not sure what could have caused that. I would try doing all the steps a second time.
Ice Bear (1 year ago)
Hi John! I have a little problem with my app. On my device Im running android 6.0 and when I try the app it crashes. On other devices, including emulators it works perfect. How can i fix it? How to change the sdk or what has to be changed? Thank you!
I need to see what android is telling android studio when the issue occurs. If for example the reason the app wont run on 6.0 is because the manifest file or gradle file wont allow it, then android will report that to android studio. That's the information I need to fix the issue. So in android studio, click the green run button to run the app. Then when it runs or doesn't run it will send an error description to android studio. In the bottom of android studio there should be a tab that says android monitor. Click that and share the red words with me so I can determine the issue.
Ice Bear (1 year ago)
the app can be build as a apk and it runs on devices with android %.0 lollipop. The issue is on my dveice witch has android 6.0. The app crashes on the newer version of android
+Andrei F well that's a interesting issue. In the bottom of android studio there should be a tab that says android monitor. Click that and share the red words with me so I can determine the issue

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.