没有在Android Studio中发现的gradle本地Maven的依赖
Android的工作室找不到一个依赖这显然是在我的本地库。错误:
Android studio cannot find a dependency which is obviously in my local repository. Error:
错误:无法找到:com.poppy:合奏-frutti-DTOS:1.0.0-快照打开文件结果中打开项目结构
对话框
Error:Failed to find: com.poppy:tutti-frutti-dtos:1.0.0-SNAPSHOT Open File
Open in Project Structure dialog
我使用的是包装的gradle和Android 1.0.2工作室。我有双重检查我的依赖关系的名字,我有项目的以下的build.gradle文件。我也试图与mavenLocale()不似乎没有擦出火花。有什么建议调试呢?
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' }
}
}
下面是我的项目的模块的build.gradle文件的依赖性部分:
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.+'
}
我的图书馆就设在这里:D:\\用户\\ Math.m2 \\库\\ COM \\罂粟\\合奏-frutti-DTOS \\ 1.0.0-SNAPSHOT
并且有文件夹下的四个文件:
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元数据,那个local.xml
- 合奏-frutti-DTOS-1.0.0-SNAPSHOT.jar
- 合奏-frutti-DTOS-1.0.0-SNAPSHOT.pom
路径是不符合数学/ .m2目录 - > Math.m2
path is not match Math/.m2 -> Math.m2
maven { url 'D:/Users/Math/.m2/repository' }
D:\Users\Math.m2\repository\com\poppy\tutti-frutti-dtos\1.0.0-SNAPSHOT