buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://maven.google.com' }
gradlePluginPortal()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
maven { url "https://jitpack.io" }
jcenter ()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'DemoAppppp'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94)
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:944)
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.2.1.
Required by:
project :
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolveModule(RepositoryChainComponentMetaDataResolver.java:103)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver.resolve(RepositoryChainComponentMetaDataResolver.java:63)
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.2.1.
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveComponentMetaData(ErrorHandlingModuleComponentRepository.java:139)
Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
at org.gradle.internal.resource.ResourceExceptions.failure(ResourceExceptions.java:74)
at org.gradle.internal.resource.ResourceExceptions.getFailed(ResourceExceptions.java:57)
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:96)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
Caused by: java.net.ConnectException: Connection refused: connect
我遵循了这个问题中给出的答案,但没有解决我的问题
100%溶液。只需关闭切换脱机模式。
在窗户的右上角。
点击分级2号选项(就在设置选项的附近),点击它,然后你就可以继续工作,萨利。
我似乎无法获得最新版本的构建工具。我怀疑这与Gradle的代理设置有关。我已经很好地看了网上,但仍然不能找到一个解决办法。我用的是2.1级。 SystemProp.http.ProxyHost=代理SystemProp.http.ProxyPort=80 SystemProp.http.ProxyUser=MyUserName SystemProp.http.ProxyPassword=密码 Sy
null 有明确声明的存储库,如mavenCentral()和jcnenter(),但不能构建它。
我从GitHub(Tetra pack)下载了一个modhttps://github.com/Noobulus/Tetra-Pak/tree/1.18)因为1.18版本还没有作为编译的jar发布。我运行了gradlew构建,但它抛出了这个错误 配置根项目“利乐-1.18”时出现问题。无法解析配置“classpath”的所有文件。无法解析com。github。GradleBuildConfig插件:
无法解析com.android.tools.build:gradle:3.6.3。脱机模式下没有com.android.tools.build:gradle:3.6.3的缓存版本 我不想关闭脱机模式,因为这将使第一条错误消息再次返回。 Android Studio 3.6.3 Android Gradle插件版本3.6.3 Gradle版本5.6.4 生成工具版本28.0.3 API 28:And
后添加包在pubspec.yaml文件。 我试图运行我的flutter应用程序,但运行失败。 错误,我有当我试图运行flutter项目:
我试图实现一个第三方的SDK捆绑包时,我运行我得到了以下错误: 任务“:app:checkDebugarMetadata”的执行失败。 无法解析配置“:app:debugRuntimeClasspath”的所有文件。 无法解析com。ts.auth-control-sdk:5.1.1。要求:项目:应用 sun.security.provider.certpath.SunCertPathBuilde