Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you have Ant version &lt; 1.8.3 (<code>ant -version</code>) try this approach for the issue with JDK 7 (based on the previous answer):</p> <ol> <li><p>Add signjarjdk7 to ANDROID_SDK\tools\ant\build.xml</p> <pre><code>&lt;macrodef name="signjarjdk7"&gt; &lt;attribute name="jar" /&gt; &lt;attribute name="signedjar" /&gt; &lt;attribute name="keystore" /&gt; &lt;attribute name="storepass" /&gt; &lt;attribute name="alias" /&gt; &lt;attribute name="keypass" /&gt; &lt;attribute name="verbose" /&gt; &lt;sequential&gt; &lt;exec executable="jarsigner" failonerror="true"&gt; &lt;!-- Magic key, always verbose --&gt; &lt;arg line="-verbose -digestalg SHA1 -sigalg MD5withRSA" /&gt; &lt;arg line="-keystore @{keystore} -storepass @{storepass} -keypass @{keypass}" /&gt; &lt;arg line="-signedjar &amp;quot;@{signedjar}&amp;quot;" /&gt; &lt;arg line="&amp;quot;@{jar}&amp;quot; @{alias}" /&gt; &lt;/exec&gt; &lt;/sequential&gt; &lt;/macrodef&gt; </code></pre></li> <li><p>Replace <code>'signjar'</code> to <code>'signjarjdk7'</code> in <code>'release'</code> target in the same build.xml.</p></li> </ol> <p>NOTE: You have to define <strong>'key.store.password'</strong> and <strong>'key.alias.password'</strong> propeties for your project (in project.properties or in local.properties).</p> <p><strong>UPDATE 1:</strong></p> <p>If your have installed Ant 1.8.3 (or later) you have a better solution:</p> <p>Open your ANDROID_SDK\tools\ant\build.xml and add two new parameters - sigalg and digestalg - in the original 'signjar' invocation:</p> <pre><code>&lt;signjar sigalg="MD5withRSA" digestalg="SHA1" jar="${out.packaged.file}" signedjar="${out.unaligned.file}" keystore="${key.store}" storepass="${key.store.password}" alias="${key.alias}" keypass="${key.alias.password}" verbose="${verbose}" /&gt; </code></pre> <p><strong>UPDATE 2:</strong> It seems this answer is deprecated after 'signjar' was replaced to 'signapk' in latest version of Android SDK tools.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload