I think the apksigner asks the password prior to locating the file to use it on.
Tried the absolute path yet?
@Shantimohan Elchuri
, if your keystore file is correctly spelled, it may be that it is not found at the expected location from where you execute the command. Try to run the command at the root of your project and use a relative path to where the file is located like;
apksigner sign --ks
".\YourKeyStoreFileLocation\esm.keystore"
--ks-key-alias <my-alias> <my-package-name>.apk
Let me know if this helped.
The keystore is in:
C:\Users\shant\AppData\Local\Xamarin\Mono for Android\Keystore\esm.keystore
I am running the apksigner command from the directory, where the apk is situated:
<my-project>\Android\Release\bin\com.<my-company>.<my-app>.apk
If it can't find the esm.keystore, then how come it is asking for the password? Isn't password embedded in the keystore file?
I just repeated what I did a month ago without any errors. That's what is perplexing me.