Advanced Android in Kotlin: Firebase Login 6.1 [Task #4, Step #2] Keytool problem
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.
-
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).
-
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 androidinstead ofkeytool -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
'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.
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