hi i am trying to add MPAndroidChart to my android studio i tried evrything from file>New >Import Module
and tried to copy it directly to my android studio
i put this in the
include':Libraries:MPChartLib'
and this in the dependency
dependencies {
compile 'com.github.PhilJay:MPAndroidChart:v2.2.5' }
but i always keep getting this error
please helppp
Read follow documentation github
Add the following to your build.gradle:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.PhilJay:MPAndroidChart:v2.2.5'
}
add or merge this in your build.gradle script.
repositories {
maven { url "https://jitpack.io" }
}
Related
Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2
I see this error when I open my projectI cant install constraint-layout:1.0.2, there is some error strong text
Your project's build.gradle should have the content as below.
All the Google specific dependencies are now hosted on their own Maven Repository.
If you still find it confusing, just create a new Project from scratch using Android Studio 3.0.1 and all the dependencies would be properly configured.
buildscript {
repositories {
google() // Speficically this entry
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
First of all, make sure to update your Android Studio. Second thing, make sure you import the Google maven repository into your project gradle file. Then, you should be able to install ConstraintLayout.
Here's the solution:
repositories {
maven {
url 'https://maven.google.com'
}
}
then add this line in dependencies:
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support.constraint:constraint-layout-solver:1.0.2'
I forked a public MediaPicker library and forked it on Github. After making some changes to the library, I made a release of the project. I checked JitPack which is showing all ok for the release but I am still unable to import it. Following is the library url for JitPack
https://jitpack.io/#rohankandwal/MediaPicker/2.3.4
I have checked my root Gradle's setting and made sure that I have following lines added-
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
I tried importing the library by using following code -
compile 'com.github.rohankandwal:MediaPicker:2.3.4'
or
compile 'com.github.rohankandwal:libary:2.3.4'
I have also asked another developer to import library but he is also unable to do so, please advice what am I missing ? The Github link to library is
https://github.com/rohankandwal/MediaPicker
Just replace this from :
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
to:
allprojects {
repositories {
maven {
name "jitpack"
url "https://jitpack.io"
}
}
Happy coding!!
i import com.github.QuadFlask:colorpicker with aar file to my project but after gradle sync i see this error and i cant resolve this :(
Screenshot
You can see on Github how to import this library properly.
This library is not released in Maven Central, but instead you can use JitPack
add remote maven url in allprojects.repositories
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
then add a library dependency
dependencies {
compile 'com.github.QuadFlask:colorpicker:0.0.13'
}
compile 'com.github.RogaLabs:social-login:1.2.1'
compile 'com.github.mukeshsolanki:social-login-helper:1.0.2'
compile 'com.github.robertsimoes:Shareable:0.1.0'
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.1'
I tried some other libraries too, they were also giving such type of errors but when I used Glide or Picasso library they synced perfectly.
but getting following error
I am using Gradle version: 2.14.1
At first make sure you add jitpack.io in build.gradle Root level Section .
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
After that Clean-Rebuild and Run .
How do I add the library to my project? I downloaded the module from this website. http://viewpagerindicator.com/#download.
I have tried changing the gradle file to
buildscript {
repositories {
maven { url "http://dl.bintray.com/populov/maven" } // for viewpagerindicator
}
}
repositories {
maven { url 'https://repo.commonsware.com.s3.amazonaws.com' } // for viewpagerindicator
}
dependencies {
compile 'com.githang:viewpagerindicator:2.4.2#aar'
}
and still i get the following error: "Didn't find class com.viewpagerindicator.CirclePageIndicator"
Thank you for any help
You need to download the library from site and include as library project in gradle.
compile project(":nameofproject")