gpt4 book ai didi

android - 无法解析配置 ':ParseStarterProject:classpath' 的所有依赖项

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:58:42 27 4
gpt4 key购买 nike

我去更新到最新的 Android Studio,现在当我去构建时,我得到了以下错误。我不知道发生了什么,也不知道如何做它所说的整个 --stacktrace 事情,如果这对我有帮助的话。任何帮助将不胜感激。

   Executing tasks: [:ParseStarterProject:clean, :ParseStarterProject:generateDebugSources, :ParseStarterProject:prepareDebugUnitTestDependencies, :ParseStarterProject:mockableAndroidJar, :ParseStarterProject:generateDebugAndroidTestSources, :ParseStarterProject:assembleDebug]

Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':ParseStarterProject'.
> Could not resolve all dependencies for configuration ':ParseStarterProject:classpath'.
> Could not resolve com.parse.tools:gradle:1.+.
Required by:
Archive 2 2:ParseStarterProject:unspecified
> Could not resolve com.parse.tools:gradle:1.+.
> Failed to list versions for com.parse.tools:gradle.
> Unable to load Maven meta-data from https://maven.parse.com/repo/com/parse/tools/gradle/maven-metadata.xml.
> Could not GET 'https://maven.parse.com/repo/com/parse/tools/gradle/maven-metadata.xml'.
> peer not authenticated

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.256 secs

这是我的gradle文件

apply plugin: 'com.android.application'
apply plugin: 'com.parse'

buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.parse.com/repo' }
}
dependencies {
classpath 'com.parse.tools:gradle:1.+'
}
}

dependencies {
compile 'com.parse.bolts:bolts-android:1.2.0'
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile fileTree(dir: 'libs', include: 'ParseCrashReporting-*.jar')
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}

2.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
}

allprojects {
repositories {
mavenCentral()
}
}

ext {
compileSdkVersion = 22
buildToolsVersion = "22"

minSdkVersion = 9
targetSdkVersion = 22
}

最佳答案

这里报告了这个问题: https://github.com/ParsePlatform/Parse-SDK-Android/issues/463

Parse 可能已经停止“托管他们的 Gradle 插件”。所以去掉

maven { url 'https://maven.parse.com/repo' }

来自“存储库”和

classpath 'com.parse.tools:gradle:1.+'

来自“依赖”

关于android - 无法解析配置 ':ParseStarterProject:classpath' 的所有依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37489036/

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