添加了shareduserid后,Android应用程序无法从市场更新 [英] Android app cannot update from market, after shareduserid added

查看:621
本文介绍了添加了shareduserid后,Android应用程序无法从市场更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加shareduserid到我的应用程序,当试图从谷歌播放商店更新应用程序时我得到-504错误。设备日志在下面。清单文件是正确的,从android studio或adb安装时没有问题,但不能从市场更新。任何想法?

I added shareduserid to my apps, when trying to update app from google play store I get -504 error.Device log is below. Manifest file is correct and when install from android studio or adb there is no problem but can not update from market. Any ideas?

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的操作系统用户标识已分配给应用程序发生更改。

If sharedUserId is added or removed from the AndroidManifest, users will not be able to update the application because the OS userid the Android OS is assigning to the application has changed.

不幸的是,在这一点上,用户只能通过卸载和重新安装才能继续前进。您无法修复此问题,以便他们进行更新。

Unfortunately for the users, at this point they can only move forward by doing an uninstall and re-install. There are no ways for you to fix this so that they can do an update.

对于您和您的用户,我真的非常抱歉。我已要求Google Play在开发者控制台中添加警告,以提醒开发人员注意这一点。

I am really, really sorry this happened to you and your users. I have asked Google Play to add a warning to the Dev Console that alerts developers about this.

对于您并非唯一拥有有这个问题。我去过那里,很糟糕。

Take some cold comfort in the fact that you are not the only one who has had this issue. I've been there, and it sucks.

这篇关于添加了shareduserid后,Android应用程序无法从市场更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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