xebia-functional / appsly-android-rest

An Android client library for RESTful based web services.
209 stars 51 forks source link

Cannot get your library from gradle repository #47

Closed zak01011996 closed 10 years ago

zak01011996 commented 10 years ago

First of all I wanna say that I was searching something like this for a long time... All REST clients for android that I saw was so "ugly to use"... But when I'm trying to add your library to gradle dependencies it crashes with this error:

Error:Failed to find: ly.apps:android-rest:1.2.1-SNAPSHOT :(

Here is my build.gradle:

apply plugin: 'com.android.application'

android { compileSdkVersion 19 buildToolsVersion "20.0.0"

defaultConfig {
    applicationId "iworld.com.realtordb"
    minSdkVersion 9
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:19.+' compile ('ly.apps:android-rest:1.2.1-SNAPSHOT@aar') { transitive = true changing = true } }

What's wrong ?

croccio commented 10 years ago

in gradle, in android brakets put this

packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/ASL2.0'
}
zak01011996 commented 10 years ago

Hi, croccio, thanks for your answer, but anyway the same error:

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find ly.apps:android-rest:1.2.1-SNAPSHOT. Required by: RealtorDBGradle:app:unspecified

zak01011996 commented 10 years ago

The problem has solved, I forgot to add centralMaven() in dependencies