title: Android KeytoolException: Failed to read key AndroidDebugKey lengthTag=109, too big
body: <p>I've been trying to generate an .apk (debug or release) and I've been getting this error:</p>
  <pre><code>com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store &quot;/home/note-300/.android/debug.keystore&quot;: DerInputStream.getLength(): lengthTag=109, too big.
  </code></pre>
  <p>I already tried creating a new key (with key and alias with the same name) on Android Studio, I deleted the .android/debug.keystore and run the following commands (from <a href="https://stackoverflow.com/questions/13535424/android-keystore-stopped-working">here</a>):</p>
  <pre><code>keytool -importkeystore -srckeystore old.keystore -destkeystore new.keystore -deststoretype pkcs12
  </code></pre>
  <p>and</p>
  <pre><code> keytool -importkeystore -srckeystore new.keystore -srcstoretype pkcs12 -destkeystore final.keystore -deststoretype jks
  </code></pre>
  <p>What else can I do to run my app?</p>
  <p>OS: Ubuntu 18.04</p>
  <p>Android Studio 3.3.1</p>