delight-im / Android-SimpleLocation

Utility class for easy access to the device location on Android
Apache License 2.0
200 stars 75 forks source link

dependecy not found #8

Closed vck closed 8 years ago

vck commented 8 years ago

i'm trying to install on android studio, i've put it on build.gradle,

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

    defaultConfig {
        applicationId "veeklab.desg"
        minSdkVersion 19
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
    compile 'com.github.delight-im:Android-SimpleLocation:v1.0.1'
}

after i ran the build, this error shown

Error:(26, 13) Failed to resolve: com.github.delight-im:Android-SimpleLocation:v1.0.1
<a href="openFile:/home/vickydasta/research/mobile/Desg/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
ocram commented 8 years ago

Thanks!

Are you sure you followed the installation instructions from the README correctly?

You probably don't have the repository definition. Please check that.

vck commented 8 years ago

sorry, didn't add maven { url "https://jitpack.io" } to build.gradle