[英]how to solve Execution failed for task ':app:checkDebugAarMetadata'
I am trying to open existing android project in android studio and it gradle cannot build the app without the error我正在尝试在 android 工作室中打开现有的 android 项目,它 gradle 无法在没有错误的情况下构建应用程序
Execution failed for task ':app:checkDebugAarMetadata'.任务“:app:checkDebugAarMetadata”执行失败。
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.无法解析配置“:app:debugRuntimeClasspath”的所有文件。 Could not find com.google.firebase:firebase-analytics:.找不到 com.google.firebase:firebase-analytics:。 Required by: project:app要求:项目:应用程序
Run with --stacktrace option to get the stack trace.使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. Run with --scan to get full insights.使用 --info 或 --debug 选项运行以获取更多日志 output。使用 --scan 运行以获取完整的见解。
For our Flutter Project: Navigate to app-level build.gradle file.对于我们的 Flutter 项目:导航到应用程序级 build.gradle 文件。 Change compileSdkVersion from 30 to 31 and Change targetSdkVersion from 30 to 31将 compileSdkVersion 从 30 更改为 31 并将 targetSdkVersion 从 30 更改为 31
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.