Android5.0无法安装支付宝

By | 2014/11/20

Android 5.0出来,我的N4当然得第一时间升级了,但是升级完之后发现支付宝安装不了了。没办法,只能调试了:

1.首先要下载支付宝到手机存储里

我的路径:/sdcard/Download/alipay_wap_dc.apk

2.开始调试

$ adb shell

shell@mako:/ $ cd /sdcard/Download

shell@mako:/sdcard/Download $ logcat -c

shell@mako:/sdcard/Download $ pm install alipay_wap_dc.apk

pkg: alipay_wap_dc.apk
Failure [INSTALL_FAILED_INVALID_URI]

这里提示uri不合法,查看logcat

shell@mako:/sdcard/Download $ logcat
W/asset (17759): Asset path /alipay_wap_dc.apk is neither a directory nor file (type=1).
W/DefContainer(17759): Failed to parse package at /alipay_wap_dc.apk: android.content.pm.PackageParser$PackageParserException: Failed to parse /alipay_wap_dc.apk
I/art ( 557): Explicit concurrent mark sweep GC freed 3256(145KB) AllocSpace objects, 0(0B) LOS objects, 32% free, 32MB/48MB, paused 1.861ms total 157.698ms
D/AndroidRuntime(17742): Shutting down VM

logcat提示我的路径是/alipay_wap_dc.apk,但实际路径应该是/sdcard/Download/alipay_wap_dc.apk ,所以修改路径后继续

130|shell@mako:/sdcard/Download $ pm install sdcard/Download/alipay_wap_dc.apk
pkg: sdcard/Download/alipay_wap_dc.apk
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.alipay.mobile.command.trigger.permission pkg=com.dianping.v1]

这里提示我们支付宝和dianping(大众点评)有冲突,直接卸了大众点评后继续

shell@mako:/sdcard/Download $ pm install sdcard/Download/alipay_wap_dc.apk
pkg: sdcard/Download/alipay_wap_dc.apk
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.taobao.permission.UPDATE_CREDENTIALS pkg=com.taobao.etao]

这里提示我们支付宝和etao(一淘)也有冲突,直接卸了一淘后继续

shell@mako:/sdcard/Download $ pm install sdcard/Download/alipay_wap_dc.apk
pkg: sdcard/Download/alipay_wap_dc.apk
Success

提示支付宝安装成功。

Leave a Reply

Your email address will not be published. Required fields are marked *