zhangdaren
zhangdaren
  • 发布:2019-05-26 18:05
  • 更新:2019-09-24 18:34
  • 阅读:2430

io.dcloud.HBuilder.fileprovider is already used by io.dcloud.HBuilder

分类:uni-app

大佬们,这个是啥问题?

使用本地离线打包,Android studio出现的日志信息,,具体表现:无法安装到手机上。

hbx版本: 最新
sdk版本: 最新

Failed to commit install session 1847074454 with command cmd package install-commit 1847074454. Error: INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.xxx.xxxx-yGXhOmaaODWb_uVyT-2q7Q==: Can't install because provider name io.dcloud.HBuilder.fileprovider (in package com.xxx.xxxx) is already used by io.dcloud.HBuilder

2019-05-26 18:05 负责人:无 分享
已邀请:
zhangdaren

zhangdaren (作者) - 小程序转uniapp工具:https://ext.dcloud.net.cn/plugin?id=2656

解决了,把androidManifest.xml里这一段删除:

        <provider  
            android:name="android.support.v4.content.FileProvider"  
            android:authorities="io.dcloud.HBuilder.fileprovider"  
            android:exported="false"  
            android:grantUriPermissions="true">  
            <meta-data  
                android:name="android.support.FILE_PROVIDER_PATHS"  
                android:resource="@xml/file_provider" />  
        </provider>

其实我挺纳闷的,,之前是让把这一段加入,然后没见有人提起要去掉?

q***@163.com

q***@163.com

或者把这一句改成你自己的:
android:authorities="io.dcloud.HBuilder.fileprovider"

q***@163.com

q***@163.com

或者把这一句改成你自己的:
android:authorities="io.dcloud.HBuilder.fileprovider"

例如:
android:authorities="com.xxx.xxx.fileprovider"

该问题目前已经被锁定, 无法添加新回复