Hi im unable to generate APK.. "Generate Signed Apk" is not showing in Android Studio..Also when i click " Build APK(s) " nothing coming... check screenshot Thanks
-
you can use CMD also to create signed apk. https://www.timroes.de/2013/09/22/handling-signing-configs-with-gradle/ – Vinay Rathod Jul 05 '18 at 04:49
-
Thanks.. but what happen? check this image - https://i.stack.imgur.com/AF9xN.png – cas2018 Jul 05 '18 at 04:54
-
May be android studio has problem. You can create new android project and copy all this code to new project. Wish that works – Vinay Rathod Jul 05 '18 at 04:59
-
Try `File - Invalidate and Restart` – HB. Jul 05 '18 at 05:03
-
Possible duplicate of [Can not Generate Signed .apk Using Android Studio](https://stackoverflow.com/questions/25749019/can-not-generate-signed-apk-using-android-studio) – Sachin Rajput Jul 05 '18 at 05:11
-
Check my answer in the link below: https://stackoverflow.com/a/64004696/11317944 – Kartik Javali Sep 22 '20 at 07:13
-
You may want to check my answer that fixed my issue. https://stackoverflow.com/a/64004696/11317944 – Kartik Javali Sep 22 '20 at 07:14
-
[link to my response on similar question](https://stackoverflow.com/a/64004696/11317944) – Kartik Javali Sep 22 '20 at 07:56
7 Answers
This happens if your android project did not synced successfully. You need to close your project and import it again, wait for notices for a possible needed update ie: SDK, sdk tools etc. and continue till it says synced successfully. After that the menu for generate signed apk will now be available.

- 39
- 2
Probably your project is not an Android Application project but just an Android Library project.
Inside your build.gradle
under your app/
directory, there have to be a line as below.
apply plugin: 'com.android.application'
Double check this.

- 12,251
- 9
- 52
- 88
-
this one is the "top level" build script, you need to check the one inside "module level". – shizhen Jul 05 '18 at 07:07
-
From your "top level" build.gradle, you are missing google() repo which should be put above jcenter(). – shizhen Jul 05 '18 at 07:08
-
-
Your project need to sync success firstly. From your screenshot, it synced failed. Check your sync error message details and fix that first. – shizhen Jul 05 '18 at 07:52
-
1:07 PM Gradle sync started 1:07 PM Project setup started 1:07 PM Gradle sync finished in 2s 872ms – cas2018 Jul 05 '18 at 08:04
-
i checked from another my app project.. its working well.. why this problem happen to this project ? – cas2018 Jul 06 '18 at 12:14
Follow Below Steps for Nice and Easy Way:-
Go to Tools->Flutter->Open for editing in android studio.
Choose separate window. This will open the android part of your project in separate window.
Wait to Gradle to finish it's build.
Go to Build-> Generate signed bundle/apk.
Follow below video for further process.
Thank me later..!

- 67
- 1
I believe, it happens because of configuration. Check from the android studio console.
Check out this video: Problem solved

- 129
- 2
- 16
-
but there is no configuration in my Event Log :( how i select in manually – cas2018 Jul 05 '18 at 06:06
-
-
2
I go the same problem and tried all the things. Here is what you need to understand before generating the release version.
- Make sure that you have run
flutter clean
before procceding for this - Make sure you have generated the release sha keys for your application. If not then you can run the command from cmd to get it.
or other way is.
Open
Android studio
->open android folder as a project
-> right click on android folder ->open module settings
->signing configs
->add new
-> named it something e.g. release -> create a new keystore from there -> add password an all other things required. once done add that keystore there save and apply. if you see successful message then proceed with the build
now you can click on build apk. it will build a signed apk

- 251
- 3
- 13
Try to refresh your project, import the libraries again and see whether the build option is there or not. Also check your project sdk.

- 1,420
- 4
- 13
- 23
Open Build.gradle
and check if lintOptions is True then change to False
if not generate then add plugin
lintOptions {
checkReleaseBuilds false
}
//At the end of Build.gradle file
apply plugin: 'com.android.application'

- 143
- 2
- 12