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

File Download Not working in the example project #939

Open
balajiks-dev opened this issue Feb 21, 2024 · 0 comments
Open

File Download Not working in the example project #939

balajiks-dev opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@balajiks-dev
Copy link

File Download not working in the package repository in Android

Here is the console output.
W/System.err(21205): java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/vn.hunghd.example/app_flutter/Android-Programming-Cookbook.pdf
W/System.err(21205): at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:825)
W/System.err(21205): at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:450)
W/System.err(21205): at vn.hunghd.flutterdownloader.IntentUtils.buildIntent(IntentUtils.kt:19)
W/System.err(21205): at vn.hunghd.flutterdownloader.IntentUtils.validatedFileIntent(IntentUtils.kt:36)
W/System.err(21205): at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.kt:446)
W/System.err(21205): at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.kt:206)
W/System.err(21205): at androidx.work.Worker$1.run(Worker.java:86)
W/System.err(21205): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(21205): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(21205): at java.lang.Thread.run(Thread.java:920)
I/WM-WorkerWrapper(21205): Worker result FAILURE for Work [ id=b379ed95-2788-486d-88dd-4f41321ebeca, tags={ flutter_download_task, vn.hunghd.flutterdownloader.DownloadWorker } ]

  1. Download flutter_downloader project from repo.
  2. Open example path in Android Studio
  3. Run the main.dart file
  4. Download any file from the list.
  5. It will be failed after downloading progress shown.
  • OS: Android
@balajiks-dev balajiks-dev added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant