now i would like to publish into google play.
i successfully ran ‘build’ and now have a ‘release-unsigned.apk’ in my build in the android folder, hallelujah.
the documentation now reads:
If you haven’t made a key for this app yet, run:
keytool -genkey -alias your-app-name -keyalg RSA -keysize 2048 -validity 10000
so, i guess this goes in the command line tool. so i do ‘windows’+R -> cmd.
when i run the command i get an error and not a key.
how does this work on windows.
it’s impossible to ‘import’ an apk in android studio.
has anyone made it past this??!
any hints would be highly appreciated and celebrated.
jarsigner tool should be in the same directory where keytool was, so you have to either cd to that directory or use full path to this command when executing it.
Normally you should not get those errors. The reason you get them is because for some reason Java binaries directory (%JAVA_HOME%\bin) was not added to your PATH when you installed it. Can’t help you much there because I don’t use Windows, but you can try to Google how to handle this so it makes stuff easier for you in the future.