解决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

本地出现过这个情况,重新build自动下载了一些依赖就成功了。

猜你喜欢

转载自blog.csdn.net/m0_48915964/article/details/129011070