gpt4 book ai didi

android - 错误 :(26, 13) 无法解析 : com. android.support :appcompat-v7:25. 0.1

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:14:31 25 4
gpt4 key购买 nike

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文件

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 存储库 -

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

同步你的项目,它会工作:-)

关于android - 错误 :(26, 13) 无法解析 : com. android.support :appcompat-v7:25. 0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40884845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com