Android Studio: Signing issue after upgrade

后端 未结 4 1573
一整个雨季
一整个雨季 2021-02-02 00:16

I recently upgraded my android studio from 0.2.6 to 0.2.11. The Build - > \"generate signed apk\" wizard which was opening up in 0.2.6 is not coming up here. Instead it shows a

相关标签:
4条回答
  • 2021-02-02 00:53

    This issue is got fixed in Android Studio v 0.2.13 as expected.

    Bug fixed by Android Studio Developer Team

    Google Android Thread

    0 讨论(0)
  • 2021-02-02 01:17

    A temporary fix for your issue is to restart Android Studio. After a cold start, Android Studio will let you access the "generate signed apk" wizard once before again warning you that you have to change your build.gradle.

    As Shai mentioned, this will be fixed in a future release. Please see the links in his post.

    0 讨论(0)
  • 2021-02-02 01:17

    I copied gradlew from the android studio to my project root directory

    Then I added this to my build.gradle

    android {
        ...
        signingConfigs {
            release {
                storeFile file("mykeystore")
                storePassword "mypassword"
                keyAlias "my alias"
                keyPassword "mypassword"
            }
        }
        buildTypes {
            release {
                signingConfig signingConfigs.release
            }
        }
    }
    

    Then I did

    gradlew assembleRelease
    

    from my project root directory

    This way I got the signed apk in build/apk

    Too bad I wasn't able to do the same via IDE

    0 讨论(0)
  • 2021-02-02 01:17

    I ended up just using "gradle installRelease" and coping the release APK from build/apk folder.

    I am not sure why we are getting this, I do have my signingConfigs setup properly in build.gradle.

    0 讨论(0)
提交回复
热议问题