我目前正在使用MPAndroid图表来绘制安卓上的图表。
这份正式文件要求我做以下工作,但我不明白这意味着什么。
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}<!-- <repositories> section of pom.xml -->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<!-- <dependencies> section of pom.xml -->
<dependency>
<groupId>com.github.PhilJay</groupId>
<artifactId>MPAndroidChart</artifactId>
<version>v3.1.0</version>
</dependency>首先,build.gradle文件是应用程序还是项目?
我应该在哪里为你做一个应用程序?
pom.xml文件在哪里?
发布于 2021-08-20 22:51:54
在build.gradle(项目)中,确保
allprojects {
repositories {
google()
maven { url "https://jitpack.io" }// you have this line
}
}在您的build.gradle(模块)
dependencies {
//this line
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}https://stackoverflow.com/questions/68864907
复制相似问题