使用此方法下载Jar包的前提是已经配置好了Gradle的环境了,配置好的标志是在终端输入gradle不提示command not found。

1. 编写build.gradle文件代码:

apply plugin: 'java'


repositories {
    mavenCentral()
    jcenter()
    google()
}


dependencies {
    compile 'io.reactivex.rxjava2:rxjava:2.1.3'
}


task copyJars(type: Copy) {
  from configurations.runtime
  into 'lib' // 目标位置
}

2. 执行下载的指令

gradle copyJars

3. Maven 下载方式

http://www.cnblogs.com/tangshengwei/p/6341628.html

相关文章:

  • 2021-11-04
  • 2021-12-31
  • 2022-12-23
  • 2021-10-09
  • 2021-07-18
  • 2021-12-28
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2021-06-17
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案