Closed zak01011996 closed 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'
}
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
The problem has solved, I forgot to add centralMaven() in dependencies
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"
}
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 ?