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:
- open android studio
- open project
- click on gradle (from right side panel, see gradle bar)
- click on refresh (click on refresh gradle bar, see list gradle scripts of project)
- click on project (your project name form list (root))
- click on tasks
- click on android
- double click on signingreport (you sha1 , md5 in run bar)
- select app module module selection dropdown run or debug application
check screenshot below:
2. work google maps activity:
- open android studio
- open project
- click on file menu -> select new -> click on google -> select google maps activity
- a dialog appear -> click on finish
- android studio automatically generate xml file named
google_maps_api.xml
- you debug sha1 key here (at line number 10 of xml file)
check screenshot below:
android studio v 2.2 update
there issue execution.
solution:
- click on toggle tasks execution/text mode run bar
check screenshot below:
done.
Comments
Post a Comment