当前位置:   article > 正文

Flutter Vs Code里面获得 SHA1 的方法(转)_flutter sha1

flutter sha1
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`.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

最快的修改方法, 最后一句: 在gradle.properties 增加下列代码:

org.gradle.java.home=D:/Program Files/Android/Android Studio/jre

  • 1
  • 2

注意后面的路径是你安装AS的有关路径,并注意 / 写法。

是记备忘

MaraSun BJFWDQ
postiive the 8 days, turning normal…

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号