我想在我的项目中使用 MPAndroidChart。
我在我的 gradle 中添加了该库,但在我的 xml 布局文件中,我找不到 Chart。
我的 build.gradle(Module) 是这样的:
dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}
build.gradle(Project) 是这样的:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
but I cant find Chart in my xml layout file
Add the maven { url 'https://jitpack.io' }
in 设置.gradle文件而不是 build.gradle(Project)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)