I was having the same problem. I did some research and found this:
Expiry of the debug certificate
The self-signed certificate used to sign your app for debugging has an expiration date of 365 days from its creation date. When the certificate expires, you will get a build error.
To fix this problem, simply delete the debug.keystore file. The file is stored in the following locations:
- ~/.android/ on OS X and Linux
- C:Documents and Settings.android on Windows XP
- C:Users[user].android on Windows Vista and Windows 7, 8, and 10
The next time you build and run the debug build type, the build tools will regenerate a new keystore and debug key. Note that you must run your app, building alone does not regenerate the keystore and debug key.
It worked for me. The source of my information is the official android developers site: https://developer.android.com/studio/publish/app-signing
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…