1.使用 Android Studio+智能电视 运行git工程报错:
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER
List of apks:
[0] ‘D:\XXX\XXX\XXXX\XXX\XXX\XXXapp\build\outputs\apk\national\debug_online\XXX_debug_online_2.3.0_national_fusion_202212051636.apk’
Installation failed due to: ‘Failed to commit install session 1344865755 with command cmd package install-commit 1344865755. Error: INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn’t be installed in /data/app/com.xxx.xxx-BDbwGOBRu_lIaR8CWUVfog==: Can’t install because provider name xxx.xxx.versionProvider (in package com.xxx.xxx) is already used by com.cmmm.hjq_demo’
由于前序的软件安装、环境配置、jdk和sdk等问题已逐一解决,因此排除此类可能性。确定具有系统开发权限后,该问题的解决方法为:把com.cmri.hjq_demo uninstall,即——
在windows控制台中输入 “adb uninstall com.cmmm.hjq_demo” 即可解决。如下图,enter即可:
2.系统权限相关的gradle没配好时报错:
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
Installation failed due to: 'Failed to commit install session 1643319610 with command cmd package install-commit 1643319610. Error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package com.xxx.xxx tried to change user android……
这是属于上一个报错的前序步骤应解决问题,此处顺带记一下。
1.检查local.properties和gradle.properties配置文件是否齐全,导入所需gradle。
2.检查Build Variants选择模式是否正确。(路径:菜单——Build——select Build Variants)
版权归原作者 噌噌噌噌噌 所有, 如有侵权,请联系我们删除。