0

excuse me internet, i was trying to get my sha 1 and 256 for firebase authentication project. i follow the instructions from build.gradle but the gradle wont show the signingreport.

now i trying to do it from gradlew.bat

after i run the gradlew, it show message like this

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

please, what should i do ?

Silent Roar
  • 29
  • 1
  • 4
  • try this https://stackoverflow.com/questions/51845559/generate-sha-1-for-flutter-react-native-android-native-app – Pokaboom May 24 '21 at 13:17

1 Answers1

0

Click on Command Prompt from search and "Run as administrator"

use setx -m JAVA_HOME "C:\Progra~1\Java\jdk1.8.0_XX"

here C:\Progra~1\Java\jdk1.8.0_XX is the folder that has your jdk

Narendra_Nath
  • 4,578
  • 3
  • 13
  • 31