Problem:Keytool error: Java. Io. filenotfoundexception: myandroidkey. keystore (Access denied ).
Symptom: When the android APK signature is supported under cmd today, enter the command: keytool-genkey-alias myandroidkey. keystore-keyalg RSA-validity 20000-keystore myandroidkey. keystore
Then enter a series of info, and the above error occurs when the input password is confirmed.
Survey Summary
Permission issues:Your JDK directory is on drive C, and the current user has no write permission;
Solution:1. modify directory permissions. It is best to use the Java directory 2. Because JDK environment variables are already available, change to other partitions and execute arbitrary directories.
Thinking: I found that the attributes of all directories on the computer drive C are read-only and I have never paid attention to them before (Note: I have logged on with non-administrator permissions ). In other words, except Windows folders may be protected, other folders should not be read-only.
I. Want to know why it is read-only?
2. Manually change the directory properties to remove read-only data. In addition to permission modification, is there any other way to modify or remove this attribute?
Anyone who knows about Windows permission attributes can give me some help!
Appendix: see how to log on as an administrator