Comments (10)
这个是jcenter上面的源码地址:
jacksgong / maven / FileDownloader / 0.2.0
你直接下载这个jar包( library-0.2.0-sources.jar),然后导入试试。
from filedownloader.
你好,导入后,发现包里面都是空的package,这是为什么啊?
from filedownloader.
我知道了。可能是因为这里面都是java源码,而不是编译好的class文件。
from filedownloader.
你尝试下载 library-0.2.0-sources.jar上面的 library-0.2.0.aar ,然后用zip工具打开,取其中的 classes.jar
,然后导入试试(应该是没有问题,我们没有资源文件,classes.jar是编译后的class)。
如果导入成功以后可以使用,可能你还需要在你的AndoridManifest中申明下服务:
...
<application>
...
<service
android:name="com.liulishuo.filedownloader.services.FileDownloadService"
android:process=":filedownloader" />
...
</application>
...
P.S: 成功以后,应该就可以使用了,如果你想将class关联源码方便使用,你再下载上面提到的library-0.2.0-sources.jar 然后再通过IDE有关方式进行关联即可。
from filedownloader.
#48 我看下。
from filedownloader.
抱歉 是我这边忘记将APPlication名字替换了 现在已经可以了 然后能加下你的QQ吗 因为我不是太熟悉 如果有问题可以问下你 我的QQ490930685 如果不方便也米关系 我这边也可以提问的。
from filedownloader.
好吧。。。
有相关问题你无法解决直接到这个 issue里面评论,我会第一时间reopen给你看的,如果有人也遇到相同的问题,也可以给别人带来便利。谢谢了。
from filedownloader.
请问下 有没有取消下载的接口的?比如下载到一半不想下载了,将下载任务取消,同时需要将下载的内容同时清除。
from filedownloader.
清除下载内容,可能需要你自己去删除本地文件,停止下载直接调用 FileDownloader#pause
或 停止下载所有 FileDownloader#pauseAll
这些会清除掉缓存中所有该任务相关的缓存,并且将该任务相关的线程关掉,释放所有相关资源,并且停止下载。
from filedownloader.
@wjk2813 你可以看下错误提示是什么,到源码里面看看。
from filedownloader.
Related Issues (20)
- https://discord.gg/kKD7Nt6j open
- Arroncarson new download file thing
- startForegroundService() not allowed due to mAllowStartForeground false
- W/FileDownloader.FileDownloadUtils: don't get instance length fromContent-Range header HOT 1
- 这么好的一个库既然没有人维护了
- https://bugs.chromium.org/p/chromium/people/detail?u=2599207410
- Yeah
- https://g.dev/Needfulthings
- 潜在的多线程调用可能引发的崩溃
- v1.7.5版本关闭debug后无法正常下载,error和completed回调都不走
- Foreground service types are required on `targetSdk` 34 HOT 3
- 在V1.7.7版本上,下载中直接没有通知进度了,看进程还在的,就是没有进度也没有继续下载了,并且查询当前task是还在下载状态,
- 文件第二次下载会删除之前下载好的文件,这是为什么
- Caused by android.app.ForegroundServiceStartNotAllowedException Service.startForeground() not allowed due to mAllowStartForeground false: HOT 1
- Caused by android.app.ForegroundServiceStartNotAllowedException Service.startForeground() not allowed due to mAllowStartForeground false:
- FileDownloadService.inspectRunServiceForeground android.app.MissingForegroundServiceTypeException - Starting FGS without a type callerApp=ProcessRecord{ae38c1e 15288:filedownloader/u0a146} targetSDK=34 HOT 1
- File
- file
- File
- 红米的android 13部分手机会出现SecurityException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filedownloader.