gpt4 book ai didi

Android Studio 2.2.3 Gradle Build 运行卡住

转载 作者:行者123 更新时间:2023-12-02 09:29:18 31 4
gpt4 key购买 nike

我下载 android studio 2.2.3 并加载我的项目。但是 Gradle Build 运行卡住了。它不断表明我无法运行我的应用程序。有什么问题有人可以帮我解决吗?

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]

enter image description here

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
classpath 'com.google.gms:google-services:3.0.0'
}
}

allprojects {
repositories {
jcenter()
}
}

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

最佳答案

如果您使用代理,请在 build.gradle 文件旁边创建一个 gradle.properties 文件,如下所示:

systemProp.http.proxyHost=YOUR_PROXY
systemProp.http.proxyPort=YOUR_PORT
systemProp.http.proxyUser=USERNAME
systemProp.http.proxyPassword=PASSWORD

systemProp.https.proxyHost=YOUR_PROXY
systemProp.https.proxyPort=YOUR_PORT
systemProp.https.proxyUser=USERNAME
systemProp.https.proxyPassword=PASSWORD
如果您不需要登录代理,则不需要

systemProp.http[s].proxyUsersystemProp.http[s].proxyPassword。在这种情况下,请删除这些行。

关于Android Studio 2.2.3 Gradle Build 运行卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41502164/

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