Take the 2-minute tour ×

My first Android project is finish. I want to load Google Play. when I make build -> Generate Signed APK give error android studio.

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

I tried to sign configs as this sample

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

But I dont know mykeystore and my password and other infos.

release {
            storeFile file("mykeystore")  -> what is mykeystore ?
            storePassword "mypassword"    -> what is mypassword ?
            keyAlias "my alias"           -> what is myalias ?
            keyPassword "mykeypassword"      -> what is mykeypassword ?

I cant build apk my project. This is my first project. I use android studio 2.0.11 and mac os x lion.

Please help. Sorry bad english. Thanks.

share|improve this question
The graddle code you have is correct, to obtain a keystore file, password, alias and key password, follow the instructions in this guide to generate a keystore file. developer.android.com/tools/publishing/app-signing.html#cert –  domji84 Oct 22 '13 at 21:39
Android Studio update 0.3.0 and my problem is fixed –  Mustafa Olkun Oct 23 '13 at 10:34

1 Answer 1

Do this way.. The manual is clear enough. Please specify what part you get stuck with after you work trought it, I'd suggest:


Ok, a small overview, without reference or eclipse around, so leave some space for errors, but it works like this

  • open your project in eclips
  • press right-mouse, tools (android tools?) - > export signed application (apk?)
  • go trough the wizzard:
  • make a new key-store. remember that password
  • sign your app
  • save it etc.

Also, from the link:

Compile and sign with Eclipse ADT


To create a signed and aligned .apk in Eclipse:



share|improve this answer
First thank you but I dont use Eclipse. I use Android Studio. My project don't open in eclipse. How do you know Android Studio ? –  Mustafa Olkun Oct 7 '13 at 8:45
then you can find Generate signed apk option in Build menu and follow steps. –  Brijesh Patel Oct 7 '13 at 8:47
I click generate signed apk and this warning tjod.org/questions/keystore.png –  Mustafa Olkun Oct 7 '13 at 8:51

Your Answer


