java - SHA-1 key generation ... Access Denied -


i having problems generating sha-1 key needed register google api... closest have come to, entering:

keytool -list -v -keystore "c:\users\rakeeb\.android\debug.keystore".keystore -storepass android -keypass android 

which gives error of access denied

other formats lead error invalid format.

easiest ways ever:

update added android studio v 2.2 in last step

there 2 ways this.

1. faster way:

  1. open android studio
  2. open project
  3. click on gradle (from right side panel, see gradle bar)
  4. click on refresh (click on refresh gradle bar, see list gradle scripts of project)
  5. click on project (your project name form list (root))
  6. click on tasks
  7. click on android
  8. double click on signingreport (you sha1 , md5 in run bar)
  9. select app module module selection dropdown run or debug application

check screenshot below:

enter image description here

2. work google maps activity:

  1. open android studio
  2. open project
  3. click on file menu -> select new -> click on google -> select google maps activity
  4. a dialog appear -> click on finish
  5. android studio automatically generate xml file named google_maps_api.xml
  6. you debug sha1 key here (at line number 10 of xml file)

check screenshot below:

enter image description here

android studio v 2.2 update

there issue execution.

solution:

  • click on toggle tasks execution/text mode run bar

check screenshot below:

enter image description here

done.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -