All of a sudden, for no apparent reason, I am getting a build error related to my android debug keystore.
It was working fine. I changed some java code, and the minsdk version, then next time I opened it up, it was screaming the following error.
com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "/home/user/.android/debug.keystore": DerInputStream.getLength(): lengthTag=109, too big.
I have navigated to that directory. The debug key exists, and there was a lock file associated with it, but I deleted that, and the problem persisted. I then delete the keystore, and the problem still persisted with the regenerated one.
When I close android studio and restart, running 'make project' succeeds. But once I try to hit the debugger, it fails. At that point any 'make project' runs also fail.
The build is failing on the task app:packageDebug. When I run task from the command line with gradlew packageDebug, the command succeeds. But from Android Studio it fails.
My Android Studio version is as follows. I am developing on Linux Mint 19.1.
Android Studio 3.3.1 Build #AI-182.5107.16.33.5264788, built on January 28, 2019 JRE: 1.8.0_152-release-1248-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-45-generic