This is the problem I encountered when I used java keytool to generate certificates this afternoon
Cause error:
Keytool error: java.io.FileNotFoundException : MyAndroidKey.keystore (access denied)
Analyze the problem:
When the certificate is generated, the permissions are not enough when writing to disk C. The properties of all the directories under C disk are read-only.
terms of settlement:
Method 1:
the path of JDK is in disk C. you can move JDK to other disk letters.
Method 2:
this method is the simplest to open CMD as an administrator, so that the error will not occur when writing something.