GithubHelp home page GithubHelp logo

Comments (10)

Jacksgong avatar Jacksgong commented on May 11, 2024

这个是jcenter上面的源码地址:
jacksgong / maven / FileDownloader / 0.2.0

你直接下载这个jar包( library-0.2.0-sources.jar),然后导入试试。

from filedownloader.

nakisaren avatar nakisaren commented on May 11, 2024

你好,导入后,发现包里面都是空的package,这是为什么啊?

from filedownloader.

Jacksgong avatar Jacksgong commented on May 11, 2024

我知道了。可能是因为这里面都是java源码,而不是编译好的class文件。

from filedownloader.

Jacksgong avatar Jacksgong commented on May 11, 2024

你尝试下载 library-0.2.0-sources.jar上面的 library-0.2.0.aar ,然后用zip工具打开,取其中的 classes.jar ,然后导入试试(应该是没有问题,我们没有资源文件,classes.jar是编译后的class)。

image


如果导入成功以后可以使用,可能你还需要在你的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.

Jacksgong avatar Jacksgong commented on May 11, 2024

#48 我看下。

from filedownloader.

nakisaren avatar nakisaren commented on May 11, 2024

抱歉 是我这边忘记将APPlication名字替换了 现在已经可以了 然后能加下你的QQ吗 因为我不是太熟悉 如果有问题可以问下你 我的QQ490930685 如果不方便也米关系 我这边也可以提问的。

from filedownloader.

Jacksgong avatar Jacksgong commented on May 11, 2024

好吧。。。

有相关问题你无法解决直接到这个 issue里面评论,我会第一时间reopen给你看的,如果有人也遇到相同的问题,也可以给别人带来便利。谢谢了。

from filedownloader.

nakisaren avatar nakisaren commented on May 11, 2024

请问下 有没有取消下载的接口的?比如下载到一半不想下载了,将下载任务取消,同时需要将下载的内容同时清除。

from filedownloader.

Jacksgong avatar Jacksgong commented on May 11, 2024

清除下载内容,可能需要你自己去删除本地文件,停止下载直接调用 FileDownloader#pause 或 停止下载所有 FileDownloader#pauseAll 这些会清除掉缓存中所有该任务相关的缓存,并且将该任务相关的线程关掉,释放所有相关资源,并且停止下载。

from filedownloader.

Jacksgong avatar Jacksgong commented on May 11, 2024

@wjk2813 你可以看下错误提示是什么,到源码里面看看。

from filedownloader.

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.