How to Get SHA1 Key of Your App in Flutter (VS Code)
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…
Flutter VSCode教程:快速获取应用SHA1密钥解决Java11兼容问题
本文指导你在Flutter项目中使用VSCode获取SHA1密钥,包括步骤说明。遇到Java11版本要求时,提供了解决方案:修改gradle.properties文件以指向正确Java路径。
1329

被折叠的 条评论
为什么被折叠?



