zegocloud s video audio sdk flutter package error

0 votes

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's it.

Apr 11, 2023 in Flutter by Ashwini
• 5,430 points
1,107 views

1 answer to this question.

0 votes

It seems like there are some issues with downloading the required dependencies for the zego_express_engine package. The error message suggests that there are network connectivity issues or problems with the repositories from where the dependencies are being downloaded.

Here are some things you can try to resolve the issue:

  1. Check your internet connection: This error can occur when there is a problem with your internet connection. Try to access the URLs mentioned in the error message from your web browser and see if they are accessible.

  2. Check the repositories: The error message mentions that the dependencies could not be downloaded from https://maven.aliyun.com/ and https://archiva-maven-storage-prod.oss-cn-beijing.aliyuncs.com/. Check if these repositories are accessible and working properly. You can also try adding other repositories that host the required dependencies to your project.

  3. Try running the command with the --refresh-dependencies option: This will force Gradle to download all the dependencies again, even if they are already cached on your local machine. You can try running the command flutter clean and then flutter run --refresh-dependencies to see if it resolves the issue.

  4. Update the Gradle version: The error message mentions that the project could not find the android property. This could be because of an outdated version of Gradle. Try updating your Gradle version to the latest stable version.

  5. Try using a VPN: If the issue persists, you can try using a VPN and connecting to a different location to download the dependencies.

If none of the above solutions work, you can try reaching out to the package author or the community for further assistance.

To know more, join our Flutter Course today.

answered Apr 11, 2023 by pooja

Related Questions In Flutter

0 votes
1 answer

How to find the path of Flutter SDK?

To locate the Flutter SDK, you can ...READ MORE

answered Mar 27, 2023 in Flutter by anonymous
33,304 views
0 votes
1 answer

Lock screen audio player notification not appearing when target SDK is 33?

This issue may be related to the ...READ MORE

answered Apr 6, 2023 in Flutter by vishwa
1,606 views
0 votes
1 answer

Linking 3 Flutter Projects in One Flutter Project

Yes, it is possible to combine multiple ...READ MORE

answered Mar 20, 2023 in Flutter by vinayak
725 views
0 votes
1 answer

How to change package name in flutter?

Yes, you can change the package name ...READ MORE

answered Mar 1, 2023 in Android by vishalini
3,219 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,260 points
1,154 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,460 points
1,456 views
0 votes
1 answer
0 votes
1 answer

flutter doctor --android-licenses gives a java error

This error usually occurs because the Java ...READ MORE

answered Mar 24, 2023 in Flutter by venky
4,422 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP