错误:(26,13)无法解决:com.android.support:appcompat-v7:25.0.1 [英] Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.0.1
本文介绍了错误:(26,13)无法解决:com.android.support:appcompat-v7:25.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
错误:(26,13)无法解决:com.android.support:appcompat-v7:25.0.1
错误:(23,24)无法解决:com.android.support.test.espresso:espresso-core:2.0
Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.0.1
Error:(23, 24) Failed to resolve: com.android.support.test.espresso:espresso-core:2.0
这是我的gradle文件
Here is my gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.example.jignesh.myapplication"
minSdkVersion 25
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
testCompile 'junit:junit:4.12'
}
推荐答案
您还必须在项目gradle文件中使用maven存储库-
You have to use maven repository too in your project gradle file -
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
并同步您的项目,它将起作用:-)
And sync your project, it will work :-)
这篇关于错误:(26,13)无法解决:com.android.support:appcompat-v7:25.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文