i am trying to add following library in my latest(electric eel) android studio " implementation 'com.github.10clouds:FluidBottomNavigation-android:1.2'",it requires to add "maven { url 'https://jitpack.io' }" in root buld.gradle file , but since android studio got updated it's build structure has been changed.i have added it in "dependencyResolutionManagement" in "setting.gradle" after reading some answers and synced sucessfully, but when i add "com.tenclouds.fluidbottomnavigation.FluidBottomNavigation" in layout file is all goes red and compiler says"can't find above in libray project or libraries.
i have added "maven { url 'https://jitpack.io' }" in "dependencyResolutionManagement" in setting.gradle, it synces sucessfully but comiler is stilll giving errors saying couldn't find it
Related
I have to create an application that makes extensive use of charts.
Reading the web I chose achartengine that seems to have everything I need.
I downloaded the jar file, I plugged in the libs folder, I selected "add to library" and I lunch the gradlew clean.
Result in the sources where I do the import of org.achartengine.xxxx I always returned the error that fails to resolve symbols .
Do you have suggestions?
Thank you
Andrea
I am able to use this library in my Android Studio project, this topic explains how to add AChartEngine repo to your project.
What I did:
Added following to project-wide build.gradle (one from the project root):
allprojects {
repositories {
...
maven {
url "https://repository-achartengine.forge.cloudbees.com/snapshot/"
}
}
}
For every module that uses the library, add this to its build.gradle (you may put this to the top-level build.gradle if it should be included in all modules):
dependencies {
...
compile group: 'org.achartengine', name: 'achartengine', version: '1.2.0'
}
Now I can use the library in the project, I see the classes in code assist popups and build runs as succeeds.
It seems like the new version (1.2.0) is not available for download anymore in the http://www.achartengine.org/ site. and that's why the gradle/maven method doesn't work (or the snapshot file was removed).
I succeeded using and adding it to my project by downloading the jar file from here:
https://github.com/ddanny/achartengine/files/460139/achartengine-1.2.0.zip
I'm currently attempting to include this github repository to my android studio project. I tried following the instructions given in this question but to no avail.
I've added the line maven { url "https://jitpack.io" } to my project build.gradle as well as this line compile 'com.github.karussell:snacktory' to my module build.gradle file and I get a failed to resolve error. In the question that I linked earlier, it says to follow this format for adding the library compile 'com.github.User:Repo:Tag' but I'm not sure what the tag part of it is supposed to be.
The github repo has a pom.xml file which lists other dependencies which I've been able to add without an issue. Any suggestions on how to include this particular library?
I used this repo as suggested by #Randyka Yudhistira and it worked perfectly!
I am trying to add Android-Download-Manager library to my project but after sync project error message says -Failed to resolve:com.github.majidgolshadi:Android-Download-Manager-Pro:8772a374e0
adding library like this
repositories {
maven {
url "https://jitpack.io"
}
}
compile 'com.github.majidgolshadi:Android-Download-Manager-Pro:8772a374e0'
but error comes always.
i have also tried by Downloading library and importing to android studio and also tried using File>New>Import Module but nothing helps
Android-Download-Manager-Pro is a android-app project, not library. You can fork it and to change it to library-type project, or download classes froim it and add it all into your current project.
You can check libraries in jitpack.io by "Look up" button - for releases/commits near version you can see "Get it" status, if library is available.
I have downloaded a project from here
I have android studio, Git, Gradle installed on my system.
After I import the project , while gradle is syncing it says me
" Gradle Signal-Android-master project refresh failed "
Error : CreateProcesses error=2 , The system cannot find the file specified "
I have googled alot but could n't find anything helpful.
Which file ? it doesn't state anything , I have seen the IDE logs as well but nothing there, any help in this regard ?
Thanks
If you are trying to get github dependency in you project. First you have to specify the repository in build.gradle and then add that dependency in you project.
What you can do for git repository
Step 1. Add the JitPack repository to your build file Add it in your build.gradle at the end of repositories:
https://jitpack.io
repositories {
// ...
maven { url "https://jitpack.io" }
Step 2. Add the dependency in the form
dependencies {
compile 'com.github.User:Repo:Tag'
}
I have a project hosted on GitHub at https://github.com/BoardiesITSolutions/NavigationDrawerManager.
I've seen some projects on GitHub state adding it to their gradle file in Android Studio to the dependencies section but this doesn't seem to be working for me.
I have tried compile: 'com.github.boardiesitsolutions.NavigationDrawerManager:+' but it keeps saying it can't find it, I've also tried replacing the + with the version number but no luck, Android Studio keeps saying it can't find it. I've added the repository MavenCentral as well.
Is there something I need to do from GitHub to make it accessible for Gradle?
I don't see it on maven.
You can use this website to use non-mavenized libraries with Gradle.
Just add maven { url "https://jitpack.io" } to repositories section of build.gradle and use compile 'com.github.BoardiesITSolutions:NavigationDrawerManager:0b14c84445' in dependencies.