Android Debug.keystore denied access caused by build exceptions and solutions

Source: Internet
Author: User

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:
    1. Deleting an expired Debug.keystore will automatically regenerate a debug.keystore ( simple & Rude ) with a one-year validity period.
    2. Other options after trying to add ...

Android Debug.keystore denied access caused by build exceptions and solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.