Output exception when building Android app:
[apkbuilder] keytool 错误: java.io.FileNotFoundException: C:\Users\my\.android\debug.keystore(拒绝访问.)
Cause BUILD FAILED
.
Exception Reason:
Android requires that all applications must have a signature, otherwise the program will not be installed.
And in our development process, the default generation and use of Debug.keystore ( so we usually do not pay attention to such a thing ),
Debug.keystore is valid for one year by default, in other words, if your Android environment has been in use for a year,
Then a year later today is likely to appear debug.keystore expired Q T, resulting in an engineering error or unable to generate an exception such as an APK file.
Solution:
- Deleting an expired Debug.keystore will automatically regenerate a debug.keystore ( simple & Rude ) with a one-year validity period.
- Other options after trying to add ...
Android Debug.keystore denied access caused by build exceptions and solutions