gpt4 book ai didi

android - 错误 :(29, 13) 无法解析 : com. squareup.picasso :picasso:2. 5.2

转载 作者:行者123 更新时间:2023-12-03 05:11:26 28 4
gpt4 key购买 nike

在 android studio 中,Gradle 项目无法同步并导致此错误。

Error:(29, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.2



这是我的 build.gradle (模块)
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.user.popularmovies"
minSdkVersion 10
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.2.2',
{
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:preference-v7:25.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:design:23.1.1'
}

这是我的 build.gradle (项目)
// 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:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

最佳答案

这是代理身份验证,
File> Settings...> Appearance & Behavior> System Settings> HTTP Proxy

检查图像

enter image description here

关于android - 错误 :(29, 13) 无法解析 : com. squareup.picasso :picasso:2. 5.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45173048/

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