I am trying to run keytool command on my newly setup mac with M1 chip, however navigating in
/Applications/Android Studio Preview.app/Contents/jbr/Contents/Home/bin
then open the folder with terminal to run a keytool command does not work and giving me an error
The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
This does not happen in Windows, I am expecting that I no longer need to install JRE since Android Studio itself already have it.
But opening the actual keytool executable seems working