Ionic 2 Android Build Prod在验证jar签名时发出警告 [英] Ionic 2 Android Build Prod Warning while verifying jar signing
问题描述
我在构建我的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] :由于所有文件都包含版本号,目前我已从中删除了这些META文件我的最终apk在验证之前,例如,使用
[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屋!