Android 添加共享用户 ID 后,应用程序无法从市场更新

Android app cannot update from market, after shareduserid added

我在我的应用程序中添加了 shareduserid,当我尝试从 google Play 商店更新应用程序时,我得到 -504 error.Device 日志如下。清单文件正确,从 android studio 或 adb 安装时没有问题,但无法从市场更新。有什么想法吗?

Copying /data/data/io.crash.air/files/com.xxx.xxx_36fcadf21b0a4ef18ff35b90608b3b1c.apk to base.apk
D/PackageManager(  645): Renaming /data/app/vmdl1037256928.tmp to /data/app/com.xxx.xxx-2
I/ActivityManager(  645): Force stopping com.xxx.xxx appid=10271 user=-1: uninstall pkg
I/PackageManager(  645): Package com.xxx.xxx codePath changed from /data/app/com.xxx.xxx-1 to /data/app/com.xxx.xxx-2; Retaining data and using new
W/PackageManager(  645): Package com.xxx.xxx shared user changed from <nothing> to com.yyy.yyy; replacing with new
W/PackageManager(  645): Package couldn't be installed in /data/app/com.xxx.xxx-2
W/PackageParser(  645): Unknown element under <application>: intent-filter at /data/app/com.xxx.xxx-1/base.apk Binary XML file line #334
D/ActivityManager(  645): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{2732f83e #5724 A=com.xxx.xxx U=0 sz=0}
D/ActivityManager(  645): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{2732f83e #5724 A=com.xxx.xxx U=0 sz=0}
I/PackageManager(  645): Successfully restored package : com.xxx.xxx after failed upgrade

如果在 AndroidManifest 中添加或删除 sharedUserId,用户将无法更新应用程序,因为 Android OS 正在分配 OS 用户 ID应用程序已更改。

不幸的是,对于用户来说,此时他们只能通过卸载并重新安装来继续前进。您无法解决此问题以便他们进行更新。

我真的非常抱歉这件事发生在您和您的用户身上。我已要求 Google Play 向开发者控制台添加一条警告,提醒开发者注意这一点。

请稍稍安慰一下,您不是唯一遇到此问题的人。我去过那里,很烂。