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 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
6 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.
![](../../users/profiles/10443452.webp)
- 21
- 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.
![](../../users/profiles/8034839.webp)
- 10,269
- 9
- 43
- 73
-
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
I believe, it happens because of configuration. Check from the android studio console.
Check out this video: Problem solved
![](../../users/profiles/6018433.webp)
- 99
- 1
- 15
-
but there is no configuration in my Event Log :( how i select in manually – cas2018 Jul 05 '18 at 06:06
-
-
2
Try to refresh your project, import the libraries again and see whether the build option is there or not. Also check your project sdk.
![](../../users/profiles/9844646.webp)
- 1,358
- 4
- 10
- 22
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'
![](../../users/profiles/10249364.webp)
- 73
- 1
- 12
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..!
![](../../users/profiles/15756302.webp)
- 19
- 1