Android studio cannot find a dependency which is obviously in my local repository. Error:
Error:Failed to find: com.poppy:tutti-frutti-dtos:1.0.0-SNAPSHOT Open File
Open in Project Structure dialog
I am using the gradle wrapper and Android studio 1.0.2. I have double checked the name of my dependency and I have the following build.gradle file for the project. I have also tried with mavenLocale() which doesn't not seem to work either. Any advice to debug this?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'D:/Users/Math/.m2/repository' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects{
repositories {
jcenter()
maven { url 'D:/Users/Math/.m2/repository' }
}
}
Here is the dependency section of the module build.gradle file of my project:
apply plugin: 'com.android.application'
dependencies {
compile 'com.google.android.gms:play-services:6.1.11'
compile 'org.springframework.android:spring-android-rest-template:2.0.0.M1'
compile 'com.google.code.gson:gson:2.3'
compile 'com.android.support:appcompat-v7:21.0.+'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.pnikosis:materialish-progress:1.2'
compile 'com.poppy:tutti-frutti-dtos:1.0.0-SNAPSHOT'
androidTestCompile 'junit:junit:4.+'
}
My library is located here: D:\Users\Math.m2\repository\com\poppy\tutti-frutti-dtos\1.0.0-SNAPSHOT And there are four files under that folder:
- _remote.repositories
- maven-metadata-local.xml
- tutti-frutti-dtos-1.0.0-SNAPSHOT.jar
- tutti-frutti-dtos-1.0.0-SNAPSHOT.pom