MPAndroidChart
MPAndroidChart copied to clipboard
Failed to resolve: com.github.PhilJay:MPAndroidChart:v3.1.0
I have that problem same as u before when I put maven URL in build.Gradle(project), like this
But when I put the maven URL in the setting. Gradle, is working fine and maybe u can try this solution
Adding maven { url 'https://jitpack.io' }
in setting.gradle indeed fixes the problem
thank you!!
Adding
maven { url 'https://jitpack.io' }
in setting.gradle indeed fixes the problem
It worked thanks
Adding maven { url 'https://jitpack.io' } in setting.gradle indeed fixes the problem
Excellent Thank you. it saved me.
Thank you!!!! you save me my life!! I have a final project for a master haha!
Thank you so much!
I have that problem same as u before when I put maven URL in build.Gradle(project), like this
But when I put the maven URL in the setting. Gradle, is working fine and maybe u can try this solution
Kudos! And many thanks. It fixed the problem
android studio couldn't allow me to add the following codes in app level gradle repositories { google() mavenCentral() maven(url 'https://jitpack.io') }
but when I add this in project level gradle. Then i found the following error:
I want to use 'com.github.PhilJay:MPAndroidChart:v3.1.0' into my project. Now what could be the solution. Please anyone help me
aku juga berhasil
Thanks a lot that save up my timee!!
android studio couldn't allow me to add the following codes in app level gradle repositories { google() mavenCentral() maven(url 'https://jitpack.io') }
but when I add this in project level gradle. Then i found the following error:
I want to use 'com.github.PhilJay:MPAndroidChart:v3.1.0' into my project. Now what could be the solution. Please anyone help me
add in project level gradle and not app level gradle
Adding maven only to the setting.gradle solved my problem.
I have that problem same as u before when I put maven URL in build.Gradle(project), like this
But when I put the maven URL in the setting. Gradle, is working fine and maybe u can try this solution
Thanks Man
Its working
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven{url 'https://jitpack.io'}
}
}
rootProject.name = "BarChartDemo"
include ':app'
Failed to resolve: com.github.PhilJay:MPAndroidChart:v3.1.0
Show in Project Structure dialog
Affected Modules: app
possible solution
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
But it is giving me an error.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Good, i got it.
引用失败了吧。。
Adding
maven { url 'https://jitpack.io' }
in setting.gradle indeed fixes the problem
thanks! problem fixed!
Today I faced same problem and it took a lot of time to fix this issue, even solutions mentioned here didn't work for me. I came up with latest solution:
SETP - 1 in settings.gradle
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "YOUR_SWEET_APP"
include ':app'
SETP - 2 in project level build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
maven { url 'https://jitpack.io' }
}
dependencies {
.....
}
}
SETP - 3 in module build.gradle
dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}
Done.
thanks
You saved my life Bro thanks
La Ultima solución, me funciono, la de los tres pasos.
If you are a build.gradle.kts file
settings.gradle.kts
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
Maven (photo = "https://jitpack.io ")
}
}
rootProject.name = "YOUR_SWEET_APP"
include ':app'
build.gradle.kts
// MPAndroidChart
implementation("com.github.PhilJay:MPAndroidChart:v3.1.0")
Noion's solution worked for me with a small alteration:
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
maven ("https://jitpack.io")
maven { url = uri("https://jitpack.io") } this worked to me
maven { url = uri("https://jitpack.io") } }