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
How to Upload File Using Volley Library in Android
Display All Unicode Chars in Textview
Fragment-Fragment Communication in Android
Resource Linking Fails on Lstar
Difference Between Finish() and System.Exit(0)
Android/Java: Transition/Migration from Proguard to R8
How to Use a Timertask to Run a Thread
Yet Another Getview Called Multiple Times
How Do Task Managers Kill Apps
Access Files from Assets/Www Directory
Android - Making Sliding Drawer to Slide from Left-To-Right
Play an Audio Clip Onto an Ongoing Call
Android Unknown Command 'Crunch'
What Is the "Ignoring Innerclasses Attribute" Warning Output During Compilation
How to Change Date Time Format in Android