zegocloud的视频/音频SDK Flutter包错误

huangapple go评论90阅读模式
英文:

zegocloud's video/audio sdk flutter package error

问题

尝试在我的项目中添加 zego_express_engine。

在添加了这个包 zego_express_engine: ^3.3.1 后,当我尝试运行时,出现了以下错误:

构建失败:出现异常。

* 出现了什么问题:
配置项目 ':zego_express_engine' 时出现问题。
> 无法解析配置 ':zego_express_engine:classpath' 的所有文件。
   > 无法下载 commons-io-2.4.jar (commons-io:commons-io:2.4)
      > 无法获取资源 'https://maven.aliyun.com/repository/public/commons-io/commons-io/2.4/commons-io-2.4.jar'。
         > 无法获取 'https://maven.aliyun.com/repository/public/commons-io/commons-io/2.4/commons-io-2.4.jar'。
            > 读取超时
   > 无法下载 jaxb-runtime-2.3.2.jar (org.glassfish.jaxb:jaxb-runtime:2.3.2)
      > 无法获取资源 'https://maven.aliyun.com/repository/public/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar'。
         > 读取超时
   > 无法下载 xercesImpl-2.12.0.jar (xerces:xercesImpl:2.12.0)
      > 无法获取资源 'https://maven.aliyun.com/repository/public/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.jar'。
         > 无法获取 'https://maven.aliyun.com/repository/public/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.jar'。
            > 服务器可能不支持客户端请求的 TLS 协议版本:(TLSv1.2,TLSv1.3)。您可能需要配置客户端以允许使用其他协议。请参阅:https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties
               > 远程主机终止了握手
   > 无法下载 jakarta.xml.bind-api-2.3.2.jar (jakarta.xml.bind:jakarta.xml.bind-api:2.3.2)
      > 无法获取资源 'https://maven.aliyun.com/repository/public/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar'。
         > 无法获取 'https://archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/repository/central/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar?Expires=1681196293&OSSAccessKeyId=LTAIfU51SusnnfCC&Signature=tYD5WoDIl7cLImm5l2lMjhVilAM%3D'。
            > 连接到 archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com:443 [archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/121.89.3.239] 失败:读取超时
> 未能通知项目评估监听器。
   > 无法获取项目 ':zego_express_engine' 的类型为 org.gradle.api.Project 的未知属性 'android'。
   > 无法获取项目 ':zego_express_engine' 的类型为 org.gradle.api.Project 的未知属性 'android'。

* 尝试:
> 使用 --stacktrace 选项运行以获取堆栈跟踪。
> 使用 --info 或 --debug 选项运行以获取更多日志输出。
> 使用 --scan 运行以获取完整的洞察。

* 在 https://help.gradle.org 获取更多帮助

在我的项目中只想添加这个包,就是这样。

<details>
<summary>英文:</summary>

## trying to add zego_express_engine in my project.

after adding this package zego_express_engine: ^3.3.1 when i tried to run i got this error,

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':zego_express_engine'.
    > Could not resolve all files for configuration ':zego_express_engine:classpath'.
    > Could not download commons-io-2.4.jar (commons-io:commons-io:2.4)
    > Could not get resource 'https://maven.aliyun.com/repository/public/commons-io/commons-io/2.4/commons-io-2.4.jar'.
    > Could not GET 'https://maven.aliyun.com/repository/public/commons-io/commons-io/2.4/commons-io-2.4.jar'.
    > Read timed out
    > Could not download jaxb-runtime-2.3.2.jar (org.glassfish.jaxb:jaxb-runtime:2.3.2)
    > Could not get resource 'https://maven.aliyun.com/repository/public/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar'.
    > Read timed out
    > Could not download xercesImpl-2.12.0.jar (xerces:xercesImpl:2.12.0)
    > Could not get resource 'https://maven.aliyun.com/repository/public/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.jar'.
    > Could not HEAD 'https://maven.aliyun.com/repository/public/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.jar'.
    > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties
    > Remote host terminated the handshake
    > Could not download jakarta.xml.bind-api-2.3.2.jar (jakarta.xml.bind:jakarta.xml.bind-api:2.3.2)
    > Could not get resource 'https://maven.aliyun.com/repository/public/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar'.
    > Could not GET 'https://archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/repository/central/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar?Expires=1681196293&OSSAccessKeyId=LTAIfU51SusnnfCC&Signature=tYD5WoDIl7cLImm5l2lMjhVilAM%3D'.
    > Connect to archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com:443 [archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/121.89.3.239] failed: Read timed out
    > Failed to notify project evaluation listener.
    > Could not get unknown property 'android' for project ':zego_express_engine' of type org.gradle.api.Project.
    > Could not get unknown property 'android' for project ':zego_express_engine' of type org.gradle.api.Project.

  • Try:
    > 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 9m 19s


i want to just add this package in my project that&#39;s it.

</details>


# 答案1
**得分**: 0

这个错误仅仅是因为网络速度慢。

<details>
<summary>英文:</summary>

This error is just because of the slow internet 


</details>



huangapple
  • 本文由 发表于 2023年4月11日 14:22:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/75982933.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定