worker8 / TourGuide

TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View
MIT License
2.63k stars 416 forks source link

Cannot fetch dependencies #31

Closed zhanhui913 closed 9 years ago

zhanhui913 commented 9 years ago

Hi there, I'm trying to add this library into my app and for some reason it is not letting me add this.

Here's my app's build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.mstar.hotmaps"
    minSdkVersion 16
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
   }
   buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
  }
}

dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:22.2.1'
  compile 'com.google.android.gms:play-services:7.8.0'
  compile ('com.github.worker8.tourguide:1.0.13-SNAPSHOT@aar'){
      transitive=true
  }
}

Is there anything I'm missing?

Thanks.

worker8 commented 9 years ago

Hi there, What error are you having?

zhanhui913 commented 9 years ago

HI there, the error I'm having is :

  Failed to resolve: com.github.worker8:tourguide:1.0.13-SNAPSHOT:
worker8 commented 9 years ago

Thanks for trying out this library.

Did you add the snapshot url to under repositories like this?

repositories {
    mavenCentral()
    maven(){
        url "https://oss.sonatype.org/content/repositories/snapshots"
    }
}
zhanhui913 commented 9 years ago

In my build.grade for the Project : screen shot 2015-08-20 at 10 57 34 am

In my build.grade for module:

screen shot 2015-08-20 at 10 58 07 am

worker8 commented 9 years ago

I believe this is because of .tourguide instead of :tourguide.

Try changing this:

compile ('com.github.worker8.tourguide:1.0.13-SNAPSHOT@aar'){
      transitive=true
}

to

compile ('com.github.worker8:tourguide:1.0.13-SNAPSHOT@aar'){
      transitive=true
}
zhanhui913 commented 9 years ago

Wow, thanks. Good eye there. That fixed the problem. Cheers mate. Now I can finally start using your library.

piyushmishhy commented 8 years ago

Failed to resolve: com.github.worker8:tourguide:1.0.17-SNAPSHOT. Please help

Build grade from project `buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.3' classpath 'com.google.gms:google-services:3.0.0' } }

allprojects { repositories { mavenLocal() jcenter() mavenCentral() maven(){ url "https://oss.sonatype.org/content/repositories/snapshots" }

}

}

task clean(type: Delete) { delete rootProject.buildDir }

`

build grade from app

`apply plugin: 'com.android.application'

android { compileSdkVersion 24 buildToolsVersion "24.0.0"

defaultConfig {
    applicationId "com.example.mishhy.hd"
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.debug
    }
}
packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE-FIREBASE.txt'
    exclude 'META-INF/NOTICE'
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12'

compile  'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:cardview-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
compile 'com.theartofdev.edmodo:android-image-cropper:2.2.+'

compile ('com.github.worker8:tourguide:1.0.17-SNAPSHOT@aar'){

        transitive=true
}

`