无法在Androidstudio中解析Gradle中的第三方库依赖项
当我尝试提供第三方库依赖项时,它会显示 错误:(72,13)无法解析:com.pkmmte.view:circularimageview:1.1在文件中显示 在“项目结构”对话框中显示 这是我的身材,格雷德尔。无法在Androidstudio中解析Gradle中的第三方库依赖项,android,eclipse,gradle,Android,Eclipse,Gradle,当我尝试提供第三方库依赖项时,它会显示 错误:(72,13)无法解析:com.pkmmte.view:circularimageview:1.1在文件中显示 在“项目结构”对话框中显示 这是我的身材,格雷德尔。 我的项目已从Eclipse迁移到Androidstudio。您的顶级gradle文件需要指向maven库源。见下文 // Top-level build file where you can add configuration options common to all sub-proj
我的项目已从Eclipse迁移到Androidstudio。您的顶级gradle文件需要指向maven库源。见下文
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
嘿,说真的,伙计,谢谢,但我有点怀疑。我还将另一个one项目从eclipse迁移到android studio。在该项目中,我还添加了一些第三方库依赖项,它使用mavenCentral()处理相同的存储库。怎么做?@palanivelraghul你什么意思?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}