6

The gradle window is missing in the android studio for my flutter project but it is available for my Kotlin project.

enter image description here

I have to generate the signing certificate SHA-1 to register my app in Firebase.

Venki WAR
  • 1,921
  • 4
  • 26
  • 37
esu
  • 1,940
  • 7
  • 17
  • 30
  • How did you open project? Open it as a Gradle project: https://www.jetbrains.com/help/idea/gradle.html#gradle_import – Andrey May 07 '18 at 09:28
  • I have created this project in the android studio itself. – esu May 07 '18 at 09:34

3 Answers3

10

Here is how you find the gradle section in Android Studio for a Flutter-Project:

  1. Open the build.gradle file in app/src/
  2. There should appear a small bar at the top of the code-editor and click Open for Editing in Android Studio

Android Studio

  1. A new window will open, showing the option for opening the gradle section in the side-panel, as expected.

This answer is giving you a quite extensive explanation for then generating the SHA1-fingerprint.

Lucas Aschenbach
  • 672
  • 10
  • 14
8

You won't find a gradle window view in flutter project, so here is a solution for that.. In command prompt navigate to bin folder of jdk and run this command

keytool -list -v -keystore "C:\Users\yourus\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

then you can copy sha from there

Rishab Surana
  • 1,789
  • 1
  • 12
  • 15
0

The problem for Android Studio is that the android(gradle)-project is not top-level. You can right-click on project- or android-folder, select Flutter->'Open Android module in Android Studio' . enter image description here After that the gradle-tab appears on the right and you can use it as intended.

dertom
  • 461
  • 4
  • 4