AnsroidStudio中提示:Failed to find configured root that contain

场景

在配置应用更新时下载完安装包之后进行安装中的提示:

 Error = Failed to find configured root that contain

博客:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。

实现

在配置的file_path.xml中添加如下代码

 <root-path name="root_path" path="."/>

完整file_path.xml示例代码

<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <external-path
        name="install_eric"
        path="."/>
    <root-path name="root_path" path="."/>
</paths>
博客园: https://www.cnblogs.com/badaoliumangqizhi/ 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。
原文地址:https://www.cnblogs.com/badaoliumangqizhi/p/14070983.html