Google播放错误-504INSTALL_PARSE_FAILED_NOT_APK

Google Play Error -504 INSTALL_PARSE_FAILED_NOT_APK

我已经构建了我的应用程序的发布 APK。

如果我尝试从 Play 商店安装它,我会得到 Error -504。用户也报告有同样的问题。

我能够从失败中捕捉到 logcat:

04-18 10:22:41.487 3713-3713/? I/Finsky: [1] com.google.android.finsky.download.DownloadBroadcastReceiver.a(45): Intent received at DownloadBroadcastReceiver
04-18 10:22:41.505 3713-3713/? I/Finsky: [1] com.google.android.finsky.download.x.b(404): com.faendir.kepi.vpviewer: onProgress 1842784/1842784 Status: 200.
04-18 10:22:41.507 3713-3713/? I/Finsky: [1] com.google.android.finsky.download.e.a(244): com.faendir.kepi.vpviewer from 2 to 3.
04-18 10:22:41.519 3713-3713/? I/Finsky: [1] com.google.android.finsky.download.x.b(603): com.faendir.kepi.vpviewer: onComplete
04-18 10:22:41.523 3713-3713/? I/Finsky: [1] com.google.android.finsky.download.x.i(344): Download com.faendir.kepi.vpviewer removed from DownloadQueue
04-18 10:22:41.524 308-308/? I/installd: free_cache(0) avail 1213521920
04-18 10:22:41.525 3713-3713/? I/Finsky: [1] com.google.android.finsky.receivers.v.c(24906): Prepare to copy com.faendir.kepi.vpviewer (com.faendir.kepi.vpviewer) from content://downloads/my_downloads/2469 (expect 1842784 bytes, isGzipped: false)
04-18 10:22:41.657 3713-3764/? I/Finsky: [8067] com.google.android.finsky.receivers.y.a(2959): com.faendir.kepi.vpviewer (com.faendir.kepi.vpviewer) (1842784 bytes) copied successfully in 116 ms
04-18 10:22:41.762 3713-3713/? I/Finsky: [1] com.google.android.finsky.receivers.y.onPostExecute(4040): Successfully copied APK to update com.faendir.kepi.vpviewer (com.faendir.kepi.vpviewer)
04-18 10:22:41.763 3713-3713/? I/Finsky: [1] com.google.android.finsky.receivers.v.c(28120): Begin install of com.faendir.kepi.vpviewer

                                         [ 04-18 10:22:41.782  1102: 1159 W/         ]
                                         Zip: missed a central dir sig (at 0)
04-18 10:22:41.782 1102-1159/? W/zipro: Error opening archive /data/app/vmdl2071847660.tmp/com.faendir.kepi.vpviewer: Iteration ended
04-18 10:22:41.782 1102-1159/? D/asset: failed to open Zip archive '/data/app/vmdl2071847660.tmp/com.faendir.kepi.vpviewer'
04-18 10:22:41.791 1102-1159/? E/PackageInstaller: Commit of session 2071847660 failed: Failed to parse /data/app/vmdl2071847660.tmp/com.faendir.kepi.vpviewer
04-18 10:22:41.816 3713-3713/? E/Finsky: [1] com.google.android.finsky.installer.x.onReceive(2496): Error -504 while installing com.faendir.kepi.vpviewer: INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl2071847660.tmp/com.faendir.kepi.vpviewer
04-18 10:22:41.816 3713-3713/? W/Finsky: [1] com.google.android.finsky.receivers.ah.a(2152): Install failure of com.faendir.kepi.vpviewer: -504 null
04-18 10:22:41.823 3713-3713/? I/Finsky: [1] com.google.android.finsky.receivers.v.a(766): Cancel running installation of com.faendir.kepi.vpviewer (com.faendir.kepi.vpviewer)

有人知道是什么原因造成的吗?

注意 1:如果我从外部存储安装 APK,它可以正常工作。

注2:我看过问题,不是这个问题

注意3:Google在搜索INSTALL_PARSE_FAILED_NOT_APK时没有给出任何有用的信息,这对我来说似乎是核心问题。

我们昨天遇到了类似的问题。如果我们从 google play 安装, logcat 消息显示 Google 播放错误 -504 INSTALL_PARSE_FAILED_NOT_APK

最后,我们发现这是用于提供内容的 CDN google 之一的问题。

我们使用新版本代码重新提交相同的 apk 以强制 CDN 刷新。 之后,一切正常。