您的当前位置:首页正文

【Error】INSTALL_FAILED_CONFLICTING_PROVIDER

2024-11-26 来源:个人技术集锦

Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER

安装App时出现以下错误

adb: failed to install D:\doc\workspace\yw\develop\cooperate-baseline\app\build\outputs\apk\***\debug\myApp-debug.apk: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.my.test-ZyF9cfhz75765-uVyZCBwQ==: Can't install because provider name com.my.test.provider (in packagecom.my.test) is already used by com.yuedu.app

大致意思是provider冲突了,手机中有个App已经有同样的android:authorities了,修改一下你要安装的App的provider即可,一般用App包名作为android:authorities的前缀即可

显示全文