Can not Generate Signed .apk Using Android Studio

前端 未结 4 435
礼貌的吻别
礼貌的吻别 2020-12-22 05:56

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.

4条回答
  •  伪装坚强ぢ
    2020-12-22 06:24

    I'm not sure why this is happening, but as a workaround you could use gradle build tasks.

    I generally do all this from the command line. If you don't have any build flavors, try doing the following:

    ./gradlew assembleRelease
    

    You can see multiple ways to sign your build using this process here: How to create a release signed apk file using Gradle?

提交回复
热议问题