Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get SHA-1 key in Android Studio 2.3.1?

When I try

gradle(Right corner): My_project: app: click on tasks: android: signingReport 

it doesn't give me any key or anything expected. I am not able to get SHA-1 key in Android Studio 2.3.1.

I get this:

Run build   761ms   
Run init scripts    23ms    
Configure settings  1ms 
Configure build 343ms   
Project :   343ms   
Resolve dependencies :classpath 331ms   
Calculate task graph    355ms   
Project :app    352ms   
Resolve dependencies :app:classpath 0ms 
Resolve dependencies :app:_debugApk 78ms    
Resolve dependencies :app:_debugCompile 12ms    
Resolve dependencies :app:_releaseApk   14ms    
Resolve dependencies :app:_releaseCompile   59ms    
Resolve dependencies :app:_debugUnitTestApk 2ms 
Resolve dependencies :app:_debugUnitTestCompile 2ms 
Resolve dependencies :app:releaseWearApp    1ms 
Resolve dependencies :app:wearApp   0ms 
Resolve dependencies :app:_releaseUnitTestApk   1ms 
Resolve dependencies :app:_releaseUnitTestCompile   1ms 
Resolve dependencies :app:_debugAndroidTestApk  17ms    
Resolve dependencies :app:_debugAndroidTestCompile  2ms 
Run tasks   10ms    
:app:signingReport  4ms 

Thanks in advance.

like image 294
Minkoo Avatar asked Apr 24 '17 14:04

Minkoo


1 Answers

Try following this:How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?.

  1. Open Android Studio
  2. Open your Project
  3. Click on Gradle (From Right Side Panel, you will see Gradle Bar)
  4. Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)
  5. Click on Your Project (Your Project Name form List (root))
  6. Click on Tasks
  7. Click on Android
  8. Double Click on signingReport (You will get SHA1 and MD5 in Run Bar)
  9. You can find it in the log of Gradle Console
like image 140
karthik gorijavolu Avatar answered Oct 16 '22 04:10

karthik gorijavolu