文件下载完成之后点击报错

zdl 1月前 52

java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.onekeysolution.app/app_file/327888154614825089-app-armeabi-v7a-release.apk at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:800) at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:442) at cn.wildfire.chat.kit.utils.FileUtils.getViewIntent(FileUtils.java:542) at cn.wildfire.chat.kit.conversation.message.viewholder.FileMessageContentViewHolder.onClick(FileMessageContentViewHolder.java:67) at cn.wildfire.chat.kit.conversation.message.viewholder.FileMessageContentViewHolder_ViewBinding$1.doClick(FileMessageContentViewHolder_ViewBinding.java:35) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:18) at android.view.View.performClick(View.java:7125) at android.view.View.performClickInternal(View.java:7102) at android.view.View.access$3500(View.java:801) at android.view.View$PerformClick.run(View.java:27336) at android.os.Handler.handleCallback(Handler.java:883)

最新回复 (3)
  • zdl 1月前
    引用 2
    已经可以了。 
  • HeavyRain 1月前
    引用 3
    是什么原因?
  • zdl 1月前
    引用 4
     
    主module里面有一个设置了。   android:resource不一样
    <provider
                android:name="androidx.core.content.FileProvider"
                android:authorities="${applicationId}.provider"
                android:exported="false"
                android:grantUriPermissions="true">
                <meta-data
                    android:name="android.support.FILE_PROVIDER_PATHS"
                    android:resource="@xml/provider_paths" />
            </provider>
返回