Solve the problem of FAILURE: Build failed with an exception

* What went wrong:
A problem occurred configuring project ':flutter_secure_storage'.
> Could not resolve all artifacts for configuration ':flutter_secure_storage:classpath'.
   > Could not find com.android.tools.build:gradle:7.3.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.3.1/gradle-7.3.1.pom
       - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.3.1/gradle-7.3.1.pom
     Required by:
         project :flutter_secure_storage
> Failed to notify project evaluation listener.
   > Could not get unknown property 'android' for project ':flutter_secure_storage' of type org.gradle.api.Project.
   > Could not get unknown property 'android' for project ':flutter_secure_storage' 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 7s
Exception: Gradle task assembleDebug failed with exit code 1

This happened locally, and the rebuild succeeded after automatically downloading some dependencies.

Guess you like

Origin blog.csdn.net/m0_48915964/article/details/129011070