flutter学习配置捉虫记录

超爱的codelab教程

构建您的第一个 Flutter 应用

key emulator

INFO | Android emulator version 35.2.10.0 (build_id 12414864) (CL:N/A) INFO | Graphics backend: gfxstream ERROR | Unknown AVD name [Pixel_8_API_35], use -list-avds to see valid list. ERROR | HOME is defined but there is no file Pixel_8_API_35.ini in $HOME\.android\avd ERROR | (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME\avd and $HOME\.android\avd)

flutter SDK 下载

恨死了,每次都吃我接近3GB流量,所以放这里了
通过网盘分享的文件:flutter_windows_3.24.4-stable.zip
链接: https://pan.baidu.com/s/1yIR0IrUYjPM0Mwps50jy-Q?pwd=rpx8 提取码: rpx8
--来自百度网盘超级会员v1的分享

android studio下载及初步配置

Android Studio下载及安装和Gradle的配置(非常详细)从零基础入门到精通,看完这一篇就够了__android studio 手动安装gradle
Flutter、Android Studio 安装详细步骤以及常错解决
JDK和Android SDK下载及安装教程好!
!!!必须注意,jdk版本不要太高,我下载了jdk23然后排错俩周,选jdk17或者21吧,为了保险我还是选jdk17吧


https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
JDK17在Windows安装以及环境变量配置(超详细的教程)

一般必须下载
Android SDK tools:基础工具包
Android SDK platform-tools:存放公共开发工具,比如adb
Android SDK Build-Tools:安装项目构建工具


path: %ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;%ANDROID_HOME%\build-tools\28.0.0

jdk没有jre的解决方法
AndroidDevTools
android studio设置jdk版本项目设置和全局设置(保姆级图文)

Running Gradle task 'assembleDebug'... 最全面的文章

修改Flutter3.19.2SDK的镜像源为国内镜像源 解决一直卡在Running Gradle task ‘assembleDebug‘与Executfailed for task ‘app:x‘
征服“多个构建操作失败”错误:Flutter 开发者的故障排除指南

【Flutter】flutter doctor network resources 报错,解决国内开发环境问题

【Flutter】flutter doctor network resources 报错,解决国内开发环境问题

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Microsoft Windows [版本 10.0.22631.4317], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[✓] Android Studio (version 2024.1)
[✓] Connected device (3 available)
[!] Network resources
✗ A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到
✗ A network error occurred while checking "https://github.com/": 信号灯超时时间已到
! Doctor found issues in 1 category.
https://blog.csdn.net/xo19882011/article/details/131386094
https://www.bilibili.com/read/cv29741725/ ←推荐
解决maven.google.com 的问题
首先找到你的flutterSDK的位置(或许可以理解为flutter的安装路径)
使用支持多编码格式的文档编辑软件打开(例如VSCode):flutterSDK的位置\packages\flutter_tools\lib\src\http_host_validator.dart
修改内容:maven.google.com 修改为dl.google.com/dl/android/maven2
保存文档
删除:flutterSDK的位置\bin目录下的cache文件夹下的全部内容(可直接删除cache)
重新运行flutter doctor正常情况下既不会出现maven的资源问题
原文链接:https://blog.csdn.net/PxFuture/article/details/134112244

[!] Network resources
✗ A network error occurred while checking "https://github.com/": 信号灯超时时间已到
! Doctor found issues in 1 category.

$Env:http_proxy="http://127.0.0.1:7890"
$Env:https_proxy="https://127.0.0.1:7890"
$Env:no_proxy="localhost,127.0.0.1,::1"

有点荒唐
[!] Network resources
✗ A network error occurred while checking "https://pub.flutter-io.cn": 远程计算机拒绝网络连接。
✗ A network error occurred while checking "https://storage.flutter-io.cn": 远程计算机拒绝网络连接。
✗ A network error occurred while checking "https://cocoapods.org/": 远程计算机拒绝网络连接。
✗ A network error occurred while checking "https://github.com/": 远程计算机拒绝网络连接。
! Doctor found issues in 1 category.
看官方文档
https://docs.flutter.cn/community/china/
这段话是指导你如何在 Windows 系统上下载并安装 Flutter SDK。以下是每一步的具体解释:

1. 从镜像站点下载 Flutter 压缩包

  • 你需要在常用的浏览器中访问 Flutter 官方镜像站点,下载适用于 Windows 的 Flutter SDK 压缩包(通常是 .zip 文件)。
  • 镜像站点是为了加速下载而设置的服务器,尤其在某些地区访问 Flutter 官方站点速度较慢时,使用镜像站点会快一些。

2. 创建安装 Flutter 的文件夹

  • 你需要在本地创建一个文件夹来放置 Flutter SDK。
  • 通过 PowerShell 命令创建一个名为 dev 的文件夹,并进入该文件夹,路径参考 %USERPROFILE%\dev,即当前用户主目录下的 dev 文件夹。
  • 具体命令如下:
    New-Item -Path "$env:USERPROFILE\dev" -ItemType Directory; cd "$env:USERPROFILE\dev"
    
    • New-Item:创建一个新的文件或文件夹。
    • -Path "$env:USERPROFILE\dev":指定路径,其中 $env:USERPROFILE 是当前用户的主目录,dev 是你想创建的文件夹。
    • cd "$env:USERPROFILE\dev":进入到刚刚创建的 dev 文件夹。

3. 从 zip 压缩文件中解压 Flutter SDK

  • 假设你已经下载了 Flutter SDK 的 .zip 压缩文件(例如 flutter_windows_v3.13.0-stable.zip)。
  • 接下来你需要将这个 .zip 文件解压缩到当前的 dev 文件夹中。
  • 可以使用 PowerShell 的 Expand-Archive 命令来解压文件:
    Expand-Archive .\flutter_windows_v3.13.0-stable.zip
    
    • Expand-Archive:解压缩指定的 .zip 文件。
    • .\flutter_windows_v3.13.0-stable.zip:这是你下载的 Flutter SDK 文件名。确保文件名和路径正确。

4. 将 Flutter 添加到 PATH 环境变量中

  • 为了能够从命令行任何地方使用 flutter 命令,你需要将 Flutter 的 bin 目录添加到系统的 PATH 环境变量中。
  • 下面是将当前目录下的 flutter/bin 路径添加到环境变量 PATH 的命令:
    $env:PATH = $pwd.PATH + "/flutter/bin", $env:PATH -join ";"
    
    解释:
    • $env:PATH:表示当前的 PATH 环境变量。
    • $pwd:表示当前目录(在这种情况下,假设你已经在 dev 文件夹下)。
    • + "/flutter/bin":将 flutter/bin 目录追加到 PATH 环境变量中。
    • -join ";":将新的 PATH 变量用分号(;)分隔。

总结

  • 你先创建一个用于存放 Flutter SDK 的文件夹(dev),
  • 然后将下载好的 Flutter SDK 解压到该文件夹中,
  • 最后通过将 Flutter 的 bin 目录添加到系统 PATH 中,使得你可以在任何地方使用 Flutter 命令。
    执行以上步骤后,你就能在命令行中直接使用 flutter 命令来开发 Flutter 应用。
    跟着官方文档做完就好了

    10/19又又又来了
    [!] Network resources
    X A network error occurred while checking "https://github.com/": 信号灯超时时间已到
    超棒的macos配置指南
    https://blog.csdn.net/wsyx768/article/details/134122594

    终于配好了!
    Win11环境下Android Studio中Flutter开发环境构建(逐步解决)
    https://blog.csdn.net/qq_41872247/article/details/139375636

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [版本 10.0.22631.4317], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[√] Android Studio (version 2024.1)
[!] Proxy Configuration
! NO_PROXY does not contain localhost
! NO_PROXY does not contain ::1
[√] Connected device (3 available)
[√] Network resources
https://juejin.cn/post/7185849297991106617

flutter run

出现 java.net.ConnectException: Connection refused 错误,说明 Gradle 无法连接到指定的资源地址,这通常是由于网络问题或代理配置导致的。

  1. 配置代理
    如果你在使用代理(如 127.0.0.1:7890),请确保代理服务正常运行,并在 gradle.properties 文件中配置代理设置:
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=7890
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7890

整个文件

# 设置 JVM 参数,提高构建性能
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError

# 启用 AndroidX 支持和 Jetifier
android.useAndroidX=true
android.enableJetifier=true

# 配置代理,确保网络连接正常(根据需要配置)
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=7890
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7890

# 启用 Gradle 缓存,以加速构建
org.gradle.caching=true

# 增加网络连接超时,适合不稳定的网络环境
systemProp.org.gradle.internal.http.socketTimeout=60000
systemProp.org.gradle.internal.http.connectionTimeout=60000

  1. 使用镜像源
    Flutter 已设置 Tsinghua 的镜像源,但 Gradle 可能还在使用默认源。可以将 Gradle 也设置为国内镜像源。打开 android/build.gradle 文件,添加以下内容:
// Root-level build.gradle file

buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }
        
        // 备用仓库
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'  // 使用最新稳定版或与项目兼容的版本
        // 其他classpath依赖
    }
}

allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }

        // 备用仓库(当阿里云源不可用时)
        google()
        mavenCentral()
    }
}

// 设置构建目录,所有子项目共享该目录
rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(":app")
}

// 定义清理任务
tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

  1. 检查网络连接
    确保你的网络连接稳定。若可能受到防火墙或其他网络限制影响,可以尝试在其他网络(如手机热点)上运行命令,以排除网络问题。
  2. 清理缓存并重新构建
    有时缓存问题可能导致连接失败。可以运行以下命令清理缓存并重新获取依赖:
flutter clean
flutter pub get
  1. 检查 gradle-wrapper.properties 文件
    确保 gradle-wrapper.properties 指定了正确的 Gradle 版本。可以将 distributionUrl 修改为国内的阿里云镜像地址:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip

Flutter下Android Studio配置gradle的方法

https://cloud.tencent.com/developer/article/1723914
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:202)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1263)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1687)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1611)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Error: Gradle task assembleDebug failed with exit code 1

java网络问题?

aunching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:579)
at java.base/sun.nio.ch.Net.connect(Net.java:568)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2944)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2853)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1949)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1611)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Retrying Gradle Build: #1, wait time: 100ms
[!] Gradle threw an error while downloading artifacts from the network.
Running Gradle task 'assembleDebug'...

气的想吐

INFO | Android emulator version 35.2.10.0 (build_id 12414864) (CL:N/A) INFO | Graphics backend: gfxstream INFO | Found systemPath D:\dev\androidSDK\system-images\android-30\google_apis_playstore\x86\ INFO | Found systemPath D:\dev\androidSDK\system-images\android-30\google_apis_playstore\x86\ INFO | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag. WARNING | Please update the emulator to one that supports the feature(s): Vulkan INFO | IPv4 server found: 192.168.31.1 INFO | Ignore IPv6 address: 2063:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 2063:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 2063:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 5069:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 5069:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 5069:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 406f:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 406f:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 406f:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 8875:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 8875:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: 8875:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e87d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e87d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e87d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e08d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e08d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: e08d:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: d893:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: d893:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: d893:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: c099:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: c099:aee9:1a02:0:2063:aee9:1a02:0 INFO | Ignore IPv6 address: c099:aee9:1a02:0:2063:aee9:1a02:0 ERROR | Running multiple emulators with the same AVD ERROR | is an experimental feature. ERROR | Please use -read-only flag to enable this feature.

差点以为要成功了

lutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
Checking the license for package Android SDK Build-Tools 33.0.1 in D:\dev\Android\SDK\licenses
License for package Android SDK Build-Tools 33.0.1 accepted.
Preparing "Install Android SDK Build-Tools 33.0.1 v.33.0.1".
"Install Android SDK Build-Tools 33.0.1 v.33.0.1" ready.
Installing Android SDK Build-Tools 33.0.1 in D:\dev\Android\SDK\build-tools\33.0.1
"Install Android SDK Build-Tools 33.0.1 v.33.0.1" complete.
"Install Android SDK Build-Tools 33.0.1 v.33.0.1" finished.
Checking the license for package Android SDK Platform 34 in D:\dev\Android\SDK\licenses
License for package Android SDK Platform 34 accepted.
Preparing "Install Android SDK Platform 34 (revision 3)".
"Install Android SDK Platform 34 (revision 3)" ready.
Installing Android SDK Platform 34 in D:\dev\Android\SDK\platforms\android-34
"Install Android SDK Platform 34 (revision 3)" complete.
"Install Android SDK Platform 34 (revision 3)" finished.
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Using insecure protocols with repositories, without explicit opt-in, is unsupported.

  • Try:

Switch Maven repository 'maven3(http://maven.aliyun.com/nexus/content/groups/public)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.
For more information, please refer to https://docs.gradle.org/8.3/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol in the Gradle documentation.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 21m
Error: Gradle task assembleDebug failed with exit code 1

2024/11/9 真机下载也有问题

Flutter assets will be downloaded from https://mirrors.tuna.tsinghua.edu.cn/flutter. Make sure you trust this source!
Launching lib\main.dart on PDKM00 in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:579)
at java.base/sun.nio.ch.Net.connect(Net.java:568)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2944)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2853)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1949)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1611)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[!] Gradle threw an error while downloading artifacts from the network.
Retrying Gradle Build: #1, wait time: 100ms
Running Gradle task 'assembleDebug'...

posted @ 2024-10-15 08:05  asandstar  阅读(181)  评论(0编辑  收藏  举报