gradle - Android Generate Signed APK Error? -


my first android project finish. want load google play. when make build -> generate signed apk give error android studio.

for gradle-based projects, signing configuration should specified in gradle build scripts.see gradle user guide more info."

i tried sign configs sample

signingconfigs {         release {             storefile file("mykeystore")             storepassword "mypassword"               keyalias "my alias"             keypassword "mykeypassword"         }     }     buildtypes {         release {             signingconfig signingconfigs.release         }     }  

but dont know mykeystore , password , other infos.

release {             storefile file("mykeystore")  -> mykeystore ?             storepassword "mypassword"    -> mypassword ?             keyalias "my alias"           -> myalias ?             keypassword "mykeypassword"      -> mykeypassword ?         } 

i cant build apk project. first project. use android studio 2.0.11 , mac os x lion.

please help. sorry bad english. thanks.

do way.. manual clear enough. please specify part stuck after work trought it, i'd suggest:

http://developer.android.com/guide/publishing/app-signing.html

ok, small overview, without reference or eclipse around, leave space errors, works this

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

also, link:

compile , sign eclipse adt

if using eclipse adt plugin, can use export wizard export signed .apk (and create new keystore, if necessary). export wizard performs interaction keytool , jarsigner you, allows sign package using gui instead of performing manual procedures compile, sign, , align, discussed above. once wizard has compiled , signed package, perfom package alignment zipalign. because export wizard uses both keytool , jarsigner, should ensure accessible on computer, described above in basic setup signing.

to create signed , aligned .apk in eclipse:

  1. select project in package explorer , select file > export.
  2. open android folder, select export android application, , click next.

    the export android application wizard starts, guide through process of signing application, including steps selecting private key sign .apk (or creating new keystore , private key).

  3. complete export wizard , application compiled, signed, aligned, , ready distribution.

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -