0

当我尝试在我的 . 上运行google-play-services_libsamsung galaxy s3 phone,我收到此错误:

"Re-installation failed due to different application signatures.  You must perform a full uninstall of the application. WARNING:  This will remove all application data.  Do you want to uninstall?"

我单击“是”,然后在控制台中显示:

"[2013-09-05 01:53:01 - google-play-services_lib] Installation error! The package already exists.
[2013-09-05 01:53:01 - google-play-services_lib] Launch canceled!"

这是完整的控制台日志,从我点击“运行”开始。

"[2013-09-05 01:51:49 - google-play-services_lib] Performing sync
[2013-09-05 01:51:49 - google-play-services_lib] Uploading google-play-services_lib.apk onto device 'd20eb13c'
[2013-09-05 01:51:49 - google-play-services_lib] Installing google-play-services_lib.apk...
[2013-09-05 01:53:01 - google-play-services_lib] Installation error! The package already exists.
[2013-09-05 01:53:01 - google-play-services_lib] Launch canceled!"

我不知道该怎么做才能解决这个问题。我尝试在线搜索,人们说在我的手机上卸载该应用程序会有所帮助,但我认为该应用程序不在我的手机上。

4

5 回答 5

1

为什么要google-play-services_lib在设备上运行?您是否正在开发引用 Google Play 服务 SDK 的应用程序?

Google Developers 页面可能会为您指明正确的方向:http: //developer.android.com/google/play-services/setup.html

于 2013-09-05T06:15:23.247 回答
1

使用命令从设备上卸载应用程序的简单方法。

只需使用您尝试安装的 PACKGE_NAME= 应用程序包名称

对于 windows 在 cmd 中执行

YOUR_PATH\android-sdk\platform-tools>adb uninstall PACKAGE_NAME

对于 linux 在终端中执行

YOUR_PATH\android-sdk\platform-tools>./adb uninstall PACKAGE_NAME

希望这会有所帮助。

于 2013-09-05T06:07:44.797 回答
0

这个问题的一个更简单的解决方案是在卸载后重命名应用程序包。

  1. 右键单击您的项目。
  2. Android 工具 => 重命名应用程序包
  3. 重命名 => 完成
于 2014-07-03T18:33:11.827 回答
0

您使用的是第 3 方固件映像吗?预装的 google-play-services_lib 的签名可能与 google play store 上的标准签名不同。

如果预装的 apk 是用非 google 标准密钥库签名的,并且由于它是预装在系统分区中的,那么卸载操作将失败。您无法以正常方式更新它。

尝试根您的设备并将所有 GMS 软件包替换为标准版本。

于 2013-09-05T06:07:17.577 回答
0
  1. 从命令提示符即 adb shell 中删除包含您的 apk 的文件夹。

    一个。adb 重新挂载 -rw

    湾。adb shell su -c setenforce 0

    C。adb shell rm /system/priv-app/[你的 apk]

    d。adb 卸载 [包名]

    e. 亚行重启

  2. 现在通过eclipse安装。

为我工作:)

于 2015-01-23T05:29:40.703 回答