0% found this document useful (0 votes)
431 views

Android - Failed To Resolve - Com - github.PhilJay - MPAndroidChart - v2.1.4 - Stack Overflow PDF

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
431 views

Android - Failed To Resolve - Com - github.PhilJay - MPAndroidChart - v2.1.4 - Stack Overflow PDF

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Search… Log In Sign Up

Home

PUBLIC

Stack Overflow

Tags
Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4 Ask Question
Users

Jobs I am using MPAndroidChart libarary in android studio.But when i am trying to sync gradle which given asked 3 years, 4 months ago
an error as below image. Gradle text is here to compile MPAndroidChart libarary.
viewed 23,630 times
34 compile 'com.github.PhilJay:MPAndroidChart:v2.1.4'
Teams active 23 days ago
Q&A for work

Learn More
5

Please help to resolve this problem. Thanks in advance

android android-studio gradle mpandroidchart jitpack

share improve this question edited Sep 22 '15 at 21:49 asked Sep 22 '15 at 13:54
Philipp Jahoda pRaNaY
37.1k 17 121 145 13.4k 11 67 113

7 Have you added maven { url "https://jitpack.io" } to your repositories? – Andrew Brooke Sep 22 '15
at 13:58
Work from anywhere
1 Just adding to @AndrewBrooke comment, you should go to your project gradle.build and add this line on
repository: maven { url "jitpack.io" }. My project is like this: allprojects { repositories { jcenter() maven { url
"jitpack.io" } } } – filipe.costa01 Sep 22 '15 at 14:12 Elasticsearch Engineer - PHP
Browzzin Pte Ltd No office location
Yes there is. and i also can't find search result for com.github.PhilJay:MPAndroidChart in Choose library
dependancy in Project sturucture --> app --> Dependancy --> +(add) --> Choose library dependacy search – $40K - $60K REMOTE
pRaNaY Sep 22 '15 at 14:13 php elasticsearch

add a comment
Senior Rails Engineer (100% Remote or
Onsite in SF) MyTime Series B SaaS
14 Answers active oldest votes Startup
Source Coders No office location
$130K - $160K REMOTE

Add elasticsearch mysql

maven { url "https://jitpack.io" }


125 Work remotely - from home or wherever you
choose.
to repositories under allprojects not under buildscript see screenshot:
Browse remote jobs

Linked

7 Build Github Package as Maven using


Jitpack

-1 Unable to resolve the dependency

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

0 Android Studio Failed to


resolve:com.github.PhilJay:MPAndroidChar
t:v2.1.3

-1 Failed to resolve:
com.github.mopa11:MainDemo1:1.0.0

0 Android Error:(35,13) Failed to


share improve this answer resolve:com.Github.PhilJay:MPAndroidCha
answered Jun 18 '16 at 0:12
rt.2.1.6
Maher Abuthraa
10.6k 6 54 75
Related
Thanks a lot. Its also written there at MPAndroidChart But I did not even notice it. Thanks again for bringing it to 686 Android error: Failed to install *.apk on
light!! – Vinay Vissh Feb 22 '17 at 7:13 device *: timeout

add a comment 872 Can't start Eclipse - Java was started but
returned exit code=13

627 “cannot resolve symbol R” in Android


Studio
Finding answers within your organization can be as easy as finding this one... Learn more
180 Android Studio Gradle Configuration with
name 'default' not found

188 Android Studio suddenly cannot resolve


symbols
Putting
591 Update Eclipse with Android development
repositories { tools v. 23
9 maven { url "https://jitpack.io" }
120 How to import android project as library and
}
NOT compile it as apk (Android studio 1.0)

in build.gradle in app folder fixed my issue! 175 Plugin is too old, please update to a more
recent version, or set
share improve this answer answered Jun 14 '16 at 10:21 ANDROID_DAILY_OVERRIDE
environment variable to
Sudheesh Mohan
1,107 2 14 32 241 Android Gradle Apache HttpClient does not
exist?
add a comment
242 “Gradle Version 2.10 is required.” Error

Above solutions did not work for me. I used below to get MPAndroidChart lib working on my project.
Hot Network Questions
1. Downloaded the latest MPAndroidChart jar from:
9 https://jitpack.io/com/github/PhilJay/MPAndroidChart/v3.0.1/MPAndroidChart-v3.0.1.jar
How to fix environment variables not working while
running from system-d service in Go
2. Copied the downloaded MPAndroidChart-v3.0.1.jar file to YourProject/app/lib directory Is it unethical to anonymously give a flagged
solution to an unidentified student who has shown
3. Compiled the following dependency at app level build.gradle intent to cheat?
dependencies { Why can the regenerative brakes of the Oslo
Metro only share energy with other trains if they
compile files('libs/MPAndroidChart-v3.0.1.jar') are "nearby"?

} Could the Bunker Dwellers become noticeably


different from Wastelanders?

4. re-sync the gradle How much is unrefined gold ore worth?

Why was there a 14 year gap between The


share improve this answer edited Mar 8 '17 at 14:46 answered Mar 8 '17 at 14:18 Incredibles and The Incredibles 2?
Draken nAQ
Back in the late 80s, how was commercial
2,561 8 26 40 443 6 10
software for 8-bit home computers developed?
add a comment What is this Xenomorph-like monster from TMNT?

Will my breaker accept #10 wire even though the


chart lists #14?
The problem was solved after restarting Android Studio > rebuild project.
What is the relation in this sequence
share improve this answer edited Apr 24 '18 at 3:19 answered Sep 22 '15 at 18:32
9 Crash cymbal turned green
Arda Çebi pRaNaY
Is it a violation of my player agency if another
434 1 7 19 13.4k 11 67 113
player is allowed to wish away memories from my
character?

Chlorine Trifluoride as a Space Weapon?

I am the last of the three


4 Doesn't work for me. – Pratik Singhal Dec 1 '16 at 5:15
magento 2 disable custom cron job from module
add a comment
If we use yellow light on a blue paper, what will the
paper look like?

If graph isomorphism is in P, is then P = NP?


I had the same problem after adding this one in the gradle solved my problem:
Why so many phds chose to join academia
repositories { instead of industry given the pay in academia is
4 jcenter() considerably lower and the workload is much
maven { url "https://jitpack.io" } heavier?
} Incomplete Word Rectangle

` Is it unethical/unprofessional to keep a record of


quotes from my colleague's outbursts?
share improve this answer edited May 19 '17 at 8:11 answered May 19 '17 at 6:09 Who would become the US President if a fictional
pRaNaY Chinthaka Devinda character like Cthulhu is elected?
13.4k 11 67 113 245 2 5 19 Employee (my direct report) underperforming due
to religious fasting - how to address?
add a comment
Shimano Revoshift twist grip unusably tight

Does the US National Weather Service use


For me the issue was resolved by placing code in below order. Centigrade or Fahrenheit?

allprojects { question feed


2 repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://maven.google.com" }
}
}

share improve this answer answered Jul 18 '18 at 11:18


Jayesh Nair
21 2

add a comment

https://stackoverflow.com/a/29742712 The JitPack repository shouldn't be under buildscripts in this


case. It should be just under repositories:
1 share improve this answer edited May 23 '17 at 12:26 answered Sep 22 '15 at 14:13
Community ♦ rand100500ify
1 1 11 1

add a comment

You could encounter this issue if your gradle offline mode is enabled.

turn it off in android studio, Settings > Gradle and uncheck "Offline work" and sync.
1
share improve this answer answered Sep 11 '18 at 4:58
Abhi
346 7

add a comment

One Problem can also be, that you are behind a proxy. So there are two possibilities: Add your proxy
config to android Studio, ore you can also add a gradle.properties file in your project root. there you
0 have to enter the following credentials:

systemProp.http.proxyPassword=
systemProp.http.proxyHost=
systemProp.http.proxyUser=
systemProp.http.proxyPort=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.https.proxyUser=
systemProp.https.proxyPort=

So the https Properties are pretty necessary. I figured out that often the repositories are available over
both protocols. but sometimes only over http or https.

share improve this answer answered Sep 29 '15 at 7:15


Erik Mueller
153 2 8

add a comment

Or just rebuild your project. Worked for me

share improve this answer answered Mar 27 '16 at 23:55


0
thp3loN2
19 1

Duplicate answer to stackoverflow.com/a/32724313/1549818 – grg Jan 2 '18 at 17:08

add a comment

Run gradle wrapper task from command line

cd ~/AndroidStudioProject/myproject/myapp
0 ./gradlew tasks

share improve this answer edited Jun 25 '16 at 13:40 answered Jun 20 '16 at 21:20
Roberto
2,159 21 20

add a comment

This worked for me. If your under proxy add this lines in gradle properties(project properties)

systemProp.http.proxyHost= "Your proxy"


0 systemProp.http.proxyPort= "Proxy port"
systemProp.https.proxyHost= "Your proxy"
systemProp.https.proxyPort= "Proxy port"

share improve this answer answered Mar 16 '18 at 10:38


banoth ravinder
325 1 9

add a comment

Build-> Rebuild the project, then re-sync the gradle file.

share improve this answer answered Oct 15 '18 at 12:27


0
CaglayanSerbetci
56 2

add a comment

In Settings Gradle just add this following code:

allprojects {
0 repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}

share improve this answer answered Jan 8 at 11:35


Soumen Das
165 1 5

add a comment

Your Answer

Sign up or log in Post as a guest


Name
Sign up using Google

Sign up using Facebook Email


Required, but never shown

Sign up using Email and Password

Post Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie
policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged android android-studio

gradle mpandroidchart jitpack or ask your own question.

STACK OVERFLOW PRODUCTS COMPANY STACK EXCHANGE Blog Facebook Twitter LinkedIn
NETWORK
Questions Teams About
Technology
Jobs Talent Press
Life / Arts
Developer Jobs Directory Engagement Work Here
Culture / Recreation
Salary Calculator Enterprise Legal
Science
Help Privacy Policy
Other
Mobile Contact Us site design / logo © 2019 Stack Exchange Inc; user contributions
licensed under cc by-sa 3.0 with attribution required.
Disable Responsiveness rev 2019.1.31.32765

You might also like