app无法安装提示 Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package cn.evergrande.it.phone attempting to

(259) 2024-03-23 18:01:02

adb install D:\code\Phone\SmartHome_AndroidPhone\app\build\outputs\apk\final-app-guanfang-debug.apk
adb: failed to install D:\code\Phone\SmartHome_AndroidPhone\app\build\outputs\apk\final-app-guanfang-debug.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package cn.evergrande.it.phone attempting to redeclare permission cn.evergrande.it.phone.permission.C2D_MESSAGE already owned by com.hd.smartVillage]

0.打开cmd

1.>adb shell
2.tiffany:/ $ pm list packages -u
package:com.miui.screenrecorder
package:com.android.cts.priv.ctsshim
package:com.qualcomm.qti.auth.sampleextauthservice
package:com.miui.contentextension
package:com.midea.ai.appliances
package:com.dongqiudi.news
package:com.android.providers.telephony
package:com.miui.powerkeeper
......
package:com.goodix.gftest
package:com.hd.smartvillage
package:com.miui.player

package:com.miui.home

3. tiffany:/ $ exit

4.C:\Users\xx>adb uninstall com.hd.smartVillage
Success

5.C:\Users\xx>adb install D:\code\Phone\SmartHome_AndroidPhone\app\build\outputs\apk\final-app-guanfang-debug.apk
Success

 

THE END

发表回复