场景:鸿蒙开发真机调试时报如下:
10/12 12:22:09: Launching com.example.NCEPU $ hdc shell am force-stop com.example.NCEPU $ hdc shell bm uninstall com.example.NCEPU $ hdc file send F:\HUAWEI\DevEcoStudioProjects\EDM\entry\build\outputs\hap\debug\entry-debug-rich-signed.hap /sdcard/eac99a2622524d9d886e065373220d6c/entry-debug-rich-signed.hap $ hdc shell bm install -p /sdcard/eac99a2622524d9d886e065373220d6c/ Failure[INSTALL_EXTRA_FAILED_UPDATE_INCOMPATIBLE] $ hdc shell rm -rf /sdcard/eac99a2622524d9d886e065373220d6c Error while Deploying HAP
原因分析:当前鸿蒙应用名称为:com.example.NCEPU,前段时间安卓开发真机运行时在手机上产生了同样的包名应用,因此,需要更换鸿蒙应用程序包名或删除手机/data/data目录下名为com.example.NCEPU的文件夹。