I am trying to export a Signed APK to submit to the play store but when I click Build->Generate Signed APK that option is grayed out and I can not select it.
Have you tried checking your project structure has an Android facet? Look under
File > Project Structure > Project Settings > Facets
This was missing for my project and prevented it from building.