Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android Q没有适配,上传图片路径会出错 #84

Open
weed-x opened this issue Oct 30, 2020 · 1 comment
Open

android Q没有适配,上传图片路径会出错 #84

weed-x opened this issue Oct 30, 2020 · 1 comment

Comments

@weed-x
Copy link

weed-x commented Oct 30, 2020

在android Q上上传文件路径处理会出现错误

@szj2935
Copy link

szj2935 commented Mar 26, 2021

应该是获取文件路径的API过时导致的
FileUtils.java文件里getFilePathFromURI方法,Environment.getExternalStorageDirectory()修改为context.getExternalFilesDir(null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants