You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 } ]
Download flutter_downloader project from repo.
Open example path in Android Studio
Run the main.dart file
Download any file from the list.
It will be failed after downloading progress shown.
OS: Android
The text was updated successfully, but these errors were encountered:
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 } ]
The text was updated successfully, but these errors were encountered: