6

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

Check Screenshot

shizhen
  • 10,269
  • 9
  • 43
  • 73
cas2018
  • 61
  • 1
  • 3

6 Answers6

2

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.

1

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.

shizhen
  • 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
  • Yes there is apply plugin: 'com.android.application' – cas2018 Jul 05 '18 at 07:45
  • 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
1

I believe, it happens because of configuration. Check from the android studio console.

Check out this video: Problem solved

Sikandar Khan
  • 99
  • 1
  • 15
0

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

Android
  • 1,358
  • 4
  • 10
  • 22
0

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'




-1

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.

https://youtu.be/MjpaSGEmQHs

Thank me later..!