Closed tanojsaipraveen closed 1 year ago
Hello @tanojsaipraveen
the URL you provided is http
not https
, and in order to use "not secure" URLs you need to add the usesCleartextTraffic="true"
in your AndroidManifest.xml, like this:
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true" <== add this line
android:label="flutter_file_downloader_example">
...
</application>
please let me know if you face any other issues, I tested it out, with and without the flag above; without it: returned same error you got with it, file is downloaded and I can play it from downloaded files
Please feel free to reopen this issue if you have any other related issues
Thanks @abdallah-odeh Its working now
That's great to hear, you are most welcome
I was getting this error when project is building
Note: C:\Users...\pub.dev\flutter_file_downloader-1.1.4\android\src\main\java\com\odehbros\flutter_file_downloader\permission\PermissionUtils.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:...\pub.dev\flutter_file_downloader-1.1.4\android\src\main\java\com\odehbros\flutter_file_downloader\MethodCallHandlerImpl.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
It's a warning I guess not an error, the project still builds successfully right? I tried to figure out what the deprecated actually but couldn't find a clear parts of the code 😕 There is already an issue about this warning #8
Yes It was warning
Unable to download this url http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4