7

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,997
  • 4
  • 25
  • 38
esu
  • 2,220
  • 8
  • 19
  • 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

2 Answers2

11

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
  • 862
  • 1
  • 11
  • 17
2

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
  • 780
  • 5
  • 5