Ionic 3将无法检测到对此JAR条目的未经授权的修改

时间:2018-04-11 16:07:10

标签: java android android-studio ionic3

我正在尝试使用ionic 3发布一个Android应用程序,但运行

时出错
apksigner verify myapp.apk

这些错误显示:

WARNING: META-INF/android.arch.core_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/.
WARNING: META-INF/android.arch.lifecycle_livedata-core.version not protected by signature. Unauthorized modifications to this JAR entry
will not be detected. Delete or move the entry outside of 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/.
WARNING: META-INF/android.arch.lifecycle_viewmodel.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-compat.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-core-ui.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-core-utils.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-fragment.version not protected by signature. Unauthorized modifications to this JAR entry
will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-media-compat.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
WARNING: META-INF/com.android.support_support-v4.version not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.

我已经做过的事情

  • 我已经检查了here,但我不知道如何删除这些META文件。如果有人可以显示目录..帮助!

  • 更新我的Angular,JDK和Android Studio

  • 更新Config.xml中的版本号

更新

感谢您的时间和帮助!

2 个答案:

答案 0 :(得分:1)

我有同样的问题,我已经使用了android@6.3.0,但它没有解决我的问题。

要解决此问题,我会关注该消息并将条目移到META-INF之外。该应用程序似乎没有此操作的问题。

答案 1 :(得分:0)

我解决此问题的方法是重新安装android

ionic cordova platform remove android 

*注意,其中一个插件无法在最新版本的android上运行。所以,我必须将Android版本降级到6.3.0

ionic cordova platform add android@6.3.0

希望这也有助于其他人!