作者:米饭2502912051 | 来源:互联网 | 2023-02-05 18:34
当我尝试
gradle(Right corner): My_project: app: click on tasks: android: signingReport
它没有给我任何关键或任何预期的东西.我无法在Android Studio 2.3.1中获得SHA-1密钥.
我明白了:
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
提前致谢.
1> karthik gori..:
请尝试以下操作:如何在Android Studio中获取SHA-1指纹证书以进行调试模式?.
打开Android Studio
打开你的项目
单击Gradle(从右侧面板,您将看到Gradle Bar)
单击Refresh(单击Refresh from Gradle Bar,您将看到项目的List Gradle脚本)
单击您的项目(您的项目名称表单列表(根))
单击"任务"
点击Android
双击signingReport(您将在运行栏中获得SHA1和MD5)
你可以在日志中找到它 Gradle Console
天啊 !!!我没注意到Gradle Console.你是对的.谢谢你!你节省了很多时间.再次感谢.