gradle 下载poi
时间: 2023-11-23 22:58:20 浏览: 169
gradle 下载地址
以下是在Gradle中下载POI的步骤:
1.在项目的build.gradle文件中添加Maven仓库地址:
```gradle
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/' }
maven { url 'https://maven.aliyun.com/repository/central/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
}
}
```
2.在dependencies中添加POI的依赖:
```gradle
dependencies {
implementation 'org.apache.poi:poi:4.1.2'
}
```
3.同步Gradle,等待依赖下载完成。
阅读全文