New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
library include #7
Comments
Thanks, I hope this is helpful to you. 😄 First, you must have to add the jitpack repository on top level // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" } // <<<< REPOSITORY HERE
}
}
task clean(type: Delete) {
delete rootProject.buildDir
} Then, you add the dependency in app level apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.your.project"
minSdkVersion 7
targetSdkVersion 23
versionCode 1
versionName "0.0.1"
}
buildTypes {
....
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.github.douglasjunior:android-simple-tooltip:0.1.1' // <<<<< DEPENDENCY HERE
...
} Your configuration is that? |
Yes. Unfortunately I still get this error. Hmm... it seeems like this is not an uncommon problem: It seems as if this problem is fixed with the next version of gradle (2.11). Unfortunately, it does not seem as if Android Studio can be easily updated to 2.11 just yet, and I have been too burned by Canary builds (where 2.11 seems to work) to want to risk updating to that at this time. |
I understand, but is strange. I'm using gradle 2.10. My #Mon Jan 25 09:28:19 BRST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip For now, you can Like this: In your include ':app:'
...
include ':android-simple-tooltip'
project(':android-simple-tooltip').projectDir = new File(getSettingsDir(), '../android-simple-tooltip/library') Make sure that the path of the project root is correct In your dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
...
compile project(':android-simple-tooltip')
} |
@micabytes tried you to add Like this: dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.github.douglasjunior:android-simple-tooltip:0.1.1@aar' // <<<<< DEPENDENCY HERE
...
} |
Alas, still does not work. Also, after a bit of tweaking, I'm now running gradle 2.12, unfortunately without solving the problem. |
Sorry about that, but unfortunately I do not know what to do to solve. I always used it @jitpack in other Android libraries, both Windows and MacOSX. I did not know these problems. 😢 I chose the "Jitpack" to be very helpful and easy. It provides the library directly from Github. Please, if you find something let me know. Out of curiosity, if you request the direct link in the browser, you can download the library? |
For this problem is out of our responsibility, I will close this issue for now. |
Awesome little library - been looking for something like this for a while, and I think this is probably the best implementation of this functionality for Android that I've seen yet.
I'm not having much luck including it from jitpack.io, though. When I try, I get the following error:
Any idea what might be going wrong?
The text was updated successfully, but these errors were encountered: