[英]FAILURE: Build failed with an exception. I cant build my flutter app :'(
My flutter application can't be built, when I build a message appears as below我的 flutter 应用程序无法构建,当我构建时出现如下消息
FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。
Could not resolve all artifacts for configuration ':app:debugAndroidTestCompileClasspath'.
无法解析配置“:app:debugAndroidTestCompileClasspath”的所有工件。 Could not find com.google.firebase:firebase-analytics-ktx:.
找不到 com.google.firebase:firebase-analytics-ktx:。 Required by: project:app
要求:项目:应用程序
Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.
运行 --scan 以获得完整的见解。
Get more help at https://help.gradle.org在https://help.gradle.org获得更多帮助
BUILD FAILED in 2s Running Gradle task 'assembleRelease'... 3.2s Gradle task assembleRelease failed with exit code 1 Process finished with exit code 1 BUILD FAILED in 2s Running Gradle task 'assembleRelease'... 3.2s Gradle task assembleRelease 失败,退出代码 1 进程完成,退出代码 1
Here is my code in pastebin enter code here
https://pastebin.com/gGsF2x5Q这是我在 pastebin 中的
enter code here
https://pastebin.com/gGsF2x5Q
implementation 'com.google.firebase:firebase-analytics-ktx
try changing this line of code with this implementation 'com.google.firebase:firebase-analytics:17.5.0
implementation 'com.google.firebase:firebase-analytics-ktx
尝试使用此implementation 'com.google.firebase:firebase-analytics:17.5.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.