WSDOT / wsdot-android-app

Source code for the WSDOT Android application
GNU General Public License v3.0
19 stars 12 forks source link

Users reporting "Can't install app" error message from Play Store #20

Closed waynedyck closed 8 years ago

waynedyck commented 8 years ago

"WSDOT" can't be installed. Try again, and if the problem continues, get help troubleshooting. (Error code: -103)

waynedyck commented 8 years ago

The signature algorithms for jarsigner changed in JDK 7. The default algorithms have been bumped to SHA-256 and SHA256withRSA respectively, and are not supported on Android.

https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html#sthref13

Based on this answer from stackoverflow, the solution is to add the following to the <configuration> of the maven-jarsigner-plugin:

<arguments>
  <argument>-sigalg</argument><argument>SHA1withRSA</argument>
  <argument>-digestalg</argument><argument>SHA1</argument>
</arguments>

The updated argument for -sigalg comes from the Android developer docs on signing your app manually.