赞
踩
All you have to do is follow these steps:
Step 1: Go to your project directory in VS Code.
Step 2: Open terminal.
Step 3: Run “cd android”.
Step 4: Run “.\gradlew signingReport”.
And then tadaa! It will display like that:
原文地址:
https://nurozkaya.medium.com/how-to-get-sha1-key-of-your-app-in-flutter-vs-code-299e0372ef96
如果出现:
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
最快的修改方法, 最后一句: 在gradle.properties 增加下列代码:
org.gradle.java.home=D:/Program Files/Android/Android Studio/jre
注意后面的路径是你安装AS的有关路径,并注意 / 写法。
是记备忘
MaraSun BJFWDQ
postiive the 8 days, turning normal…
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。