Ionic 2 Android Build Prod 在验证 jar 签名时发出警告 [英] Ionic 2 Android Build Prod Warning while verifying jar signing

查看:20
本文介绍了Ionic 2 Android Build Prod 在验证 jar 签名时发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建 Ionic 应用程序时遇到错误,它发生在一个新应用程序上(几天前我从头开始).我的旧应用程序都没有这个问题.任何较旧的应用(即 4-5 个月大的应用)都不会出现此问题.

I am getting an error while building my Ionic application, it occurs on a new app (which I started from the scratch couple of days ago). None of my old apps have this issue. The issue does not occur in any of older apps i.e., apps that are 4-5 months old.

警告:META-INF/android.arch.lifecycle_runtime.version 不受签名保护.对此 JAR 条目的未经授权的修改不会被检测到.删除或移动 META-INF/之外的条目.

WARNING: META-INF/android.arch.lifecycle_runtime.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.

它会继续增加 4-5 个文件.

and it continues for 4-5 more files.

我的环境信息:

cli 包:(/usr/local/lib/node_modules)

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

全局包:

cordova (Cordova CLI) : 7.1.0 

本地包:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : android 6.3.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

系统:

Node  : v8.9.1
npm   : 5.6.0 
OS    : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b 

环境变量:

ANDROID_HOME : not set

杂项:

backend : pro

这是出于安全考虑还是我遗漏了什么?

Is this of any security concern or am I missing something?

提前致谢.

推荐答案

[TEMP FIX]: 由于所有文件包含的都是版本号,所以现在我已经从我的最终 apk 中删除了这些 META 文件例如,在验证之前,使用过

[TEMP FIX]: As all the file contains are version nos, for now I have removed those META files from my final apk before verification e.g., used

sudo zip -d apkfilename.apk META-INF/android.arch.lifecycle_runtime

sudo zip -d apkfilename.apk META-INF/android.arch.lifecycle_runtime

对其余六个文件执行相同操作!

did the same for the rest of the six files!

这篇关于Ionic 2 Android Build Prod 在验证 jar 签名时发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆