如何修复ionic中的“ ionic Publish android Signing a APK”错误

时间:2018-12-25 20:24:51

标签: android cordova ionic-framework ionic4 jarsigner

我正在尝试发布离子程序 前两个步骤成功,但第三步遇到错误

1- ionic cordova build android --prod --release:成功

2- keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000:成功

3- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name:错误

详细错误:

  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.

图片:

  https://i.stack.imgur.com/uCITS.png
  https://i.stack.imgur.com/z05Uv.png
  https://i.stack.imgur.com/UGt0F.png

0 个答案:

没有答案