Git Product home page Git Product logo

Comments (3)

hnvn avatar hnvn commented on August 17, 2024

Have you added provider to your manifest ? (see Android integration instruction for detail)

from flutter_downloader.

cbenhagen avatar cbenhagen commented on August 17, 2024

No but I also do not want to open files on click but wasn't aware that clickToOpenDownloadedFile is set to true by default. Setting it to false fixes the issue.

from flutter_downloader.

zouzhenglu avatar zouzhenglu commented on August 17, 2024

Device: Emulated Pixel 2 with API 28

W/System.err(15204): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
W/System.err(15204): 	at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:604)
W/System.err(15204): 	at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:578)
W/System.err(15204): 	at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:416)
W/System.err(15204): 	at vn.hunghd.flutterdownloader.DownloadWorker.getOpenFileIntent(DownloadWorker.java:272)
W/System.err(15204): 	at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.java:161)
W/System.err(15204): 	at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.java:84)
W/System.err(15204): 	at androidx.work.impl.WorkerWrapper.runWorker(WorkerWrapper.java:192)
W/System.err(15204): 	at androidx.work.impl.WorkerWrapper.run(WorkerWrapper.java:105)
W/System.err(15204): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(15204): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(15204): 	at java.lang.Thread.run(Thread.java:764)
I/WorkerWrapper(15204): Worker result FAILURE for Work [ id=f27e5d6b-a588-4ee3-886e-74220a3f6a2c, tags={ flutter_download_task, vn.hunghd.flutterdownloader.DownloadWorker } ]

I have this problem, too. How did you solve it?

from flutter_downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.