Failed to Resolve: Com.Github.Philjay:Mpandroidchart:V2.1.4

Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4

The problem was solved after restarting Android Studio > rebuild project.

Failed to resolve: com.github.PhilJay.MPAndroidChart:v2.2.4

Switch to the latest version:

compile 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'

And always use information for the main source - in this case MPAndroidChart Github Repo Readme.MD

If behind a proxy configure your proxy settings in gradle.properties as follows:

systemProp.http.proxyHost=103.7.11.34
systemProp.https.proxyPort=8080
systemProp.https.proxyHost=103.7.11.34
systemProp.http.proxyPort=8080

Note: IP address and port in the lines above to be replaced by your proxy server ip address (or url) and port

All Charts libraries for android does not work

this work for me

dependencies {

implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'

}


buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
classpath 'com.google.gms:google-services:4.3.5'

}
}

allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

if not worked... check your internet connection and try another dependencies like retrofit to make sure your gradle sync work as well



Related Topics



Leave a reply



Submit