【发布时间】:2023-03-14 10:51:01
【问题描述】:
构建失败并出现异常:
出了什么问题: 任务 ':app:preDebugBuild' 执行失败。 Android 依赖 'androidx.appcompat:appcompat' 有不同的版本 用于编译(1.0.1)和运行时(1.0.2) 类路径。您应该通过手动设置相同的版本 依赖解析
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.1.8, on Microsoft Windows [Version 10.0.17763.292], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
[√] Connected device (2 available)
【问题讨论】:
-
这个
stackoverflow的答案会很有帮助,因为有几个被高度评价的答案,这将为您提供多种解决问题的方法:Android dependency has different version for the compile and runtime
标签: flutter