Ionic 4 publish android : Error Signing an APK

1- ionic cordova build android --prod --release : success
2- keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 : success
3- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name : error

details error :

C:\Users\Masoud\Desktop\Ionic\app-news>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk alias_name
Enter Passphrase for keystore:
 updating: META-INF/MANIFEST.MF
   adding: META-INF/ALIAS_NA.SF
   adding: META-INF/ALIAS_NA.RSA
  signing: AndroidManifest.xml
  signing: assets/www/1.c8c1ded9ad400bff2f40.js
  signing: assets/www/100.782d08be50f33d0e3182.js
  signing: assets/www/101.e065b049bfde52dff5ad.js
  signing: assets/www/102.9b722f5130ed0461b288.js
  signing: assets/www/103.8103538f501273fa814b.js
  signing: assets/www/104.61b3ab1dee68c8d4cc9a.js
  signing: assets/www/105.9c782119e5cca7c6591f.js
  signing: assets/www/106.76fd82f01324384fa574.js
  signing: assets/www/107.aa7817f14b28ff606ee5.js
  signing: assets/www/108.5d87f43e3a3de55b286f.js
  signing: assets/www/109.b5c91a11c0f106fc295a.js
  signing: assets/www/11.81b4443809ae25d9da52.js
  signing: assets/www/110.8f7aa122fb0fbb3f446a.js
  signing: assets/www/111.9762dfe2c1a50e903f22.js
...
  signing: res/mipmap-xhdpi-v4/icon.png
  signing: res/mipmap-xxhdpi-v4/icon.png
  signing: res/mipmap-xxxhdpi-v4/icon.png
  signing: res/xml/config.xml
  signing: resources.arsc
jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2046-05-12) or after any future revocation date.

Hello,

where is the error?
In case you mean the warning, then you can ignore it, as long you do not need nothing mentioned in the warning, for example on black *day 2046-05-13 every user will %&$§& you.
see tsa -> time stamp authority.

Best xmas, anna-liebt

please explain more
I’m introductory

Google, Bing etc is your friend, because I am also beginer with this things.
You can deploy your apk, but users are not able to start the app after the date mentioned in the warning.

Best regards, anna-liebt

2 Likes

Well, I’m also getting the same warning. In my case, by mistake, I entered the wrong password more two times, so only I started receiving this warning. I’m also a beginner.