Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Signing issue after upgrade

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 dialog like :

For Gradle-based projects, the signing configuration should be specified in the Gradle build scripts. See the Gradle User Guide for more info.

I even added the below lines in build.gradle file:

signingConfigs {
        debug {
            storeFile file("debug.keystore")
        }

        myConfig {
            storeFile file("other.keystore")
            storePassword "android"
            keyAlias "androiddebugkey"
            keyPassword "android"
        }
    }

    buildTypes {
        foo {
            debuggable true
            jniDebugBuild true
            signingConfig signingConfigs.myConfig
        }
    }

Could anyone please tell me what could be the issue?

Or also could you please let me know how to downgrade my studio?

Thanks

like image 325
user2349990 Avatar asked Oct 04 '13 15:10

user2349990


1 Answers

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.

like image 103
vlee Avatar answered Sep 27 '22 01:09

vlee