android-kotlin-login icon indicating copy to clipboard operation
android-kotlin-login copied to clipboard

Advanced Android in Kotlin: Firebase Login 6.1 [Task #4, Step #2] Keytool problem

Open holecekp opened this issue 4 years ago • 1 comments

Describe the problem Keytool problem is not found. It should be explained where to find it. Moreover, the command for the terminal does not work on Windows.

  1. If you copy the command from the codelab and paste it to the terminal (on Windows), you wiill see the following error message: "'keytool' is not recognized as an internal or external command,". Please, add instruction that the keytool can be found in "C:\Program Files\Android\Android Studio\jre\bin" (on Windows).

  2. If you switch the directory to the correct one and run the command from the codelab, you will see an error message "keytool error: java.lang.Exception: Keystore file does not exist: ~/.android/debug.keystore". I recommend adding a note that on windows, you should use: keytool -alias androiddebugkey -keystore %USERPROFILE%/.android/debug.keystore -list -v -storepass android instead of keytool -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v -storepass android

In which lesson and step of the codelab can this issue be found? Lesson 06.1, task 4, step 2 Register your app with Firebase

How to reproduce? Just try the instruction from the codelab on Windows.

codelab: advanced-android-kotlin

holecekp avatar Jun 24 '21 20:06 holecekp

'keytool -alias androiddebugkey -keystore %USERPROFILE%/.android/debug.keystore -list -v -storepass android' when writing this code 'keytool error: java.lang.Exception: Keystore file does not exist: %USERPROFILE%.android\debug.keystore' You may get an error like .

It will ask you for the path to the 'debug.keystore' file.

image

Enter the path in the '%USERPROFILE%' field

as follows

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

Hopefully it benefits your business

HakanBayazitHabes avatar Jul 20 '23 21:07 HakanBayazitHabes