Blankj / Blankj/AndroidUtilCode

UriUtils.file2Uri(File(path))崩溃,找不到文件,文件确定是存在的

Open
#1,675 0 comments 0 reactions 1 assignee View on GitHub

@Blankj is already working on this.

Since Jul 31, 2022.

bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Caused by java.lang.IllegalArgumentException
Failed to find configured root that contains /storage/A7FE-1613/Pictures/bluetooth/20220330_141114.jpg

The code of bug

UriUtils.file2Uri(File(path))

设备信息

Android 8.0.0
HUAWEI Y6 2018

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.