title: unable to sign an apk file
body: <p>I generated an apk file for my project, but when I wanted to put it in “Play Store”, I did not manage to do it, because a problem of signature!</p>
  
  <p>These are the instructions I made:</p>
  
  <p>1) </p>
  
  <pre><code>keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks app-unsigned.apk my-alias
  </code></pre>
  
  <p>3) </p>
  
  <pre><code>/Users/mac/Library/Android/sdk/build-tools/28.0.2/zipalign -v 4 app-unsigned.apk app-signed.apk
  </code></pre>
  
  <p>4) </p>
  
  <pre><code>/Users/mac/Library/Android/sdk/build-tools/28.0.2/apksigner verify app-signed.apk
  </code></pre>
  
  <p>The first 3 commands give a message of success operation, but the last one gives this error:</p>
  
  <pre><code>DOES NOT VERIFY ERROR: JAR signer CERT.RSA: JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
  </code></pre>
  
  <p>On the other hand, i used Android Studio to generate the app file signed, but there was another error message:</p>
  
  <pre><code>Error:Android Source Generator: Error: Can’t find bundle for base name messages.AndroidJpsBundle, locale fr_FR java.util.MissingResourceException: …
  </code></pre>
  
  <p>Can you tell me why this problem accur?</p>