我开始使用 flutter 开发应用程序,当我从 GitHub 克隆项目时遇到此错误:
出了什么问题?
Execution failed for task ':app:preDebugBuild'.
Android dependency 'androidx.appcompat:appcompat' has different version for the compile (1.0.0) and runtime (1.0.2) classpath. You should manually set the same version via DependencyResolution
我正在运行 Android Studio 3.2.2 和 Flutter SDK 1.2.1
最佳答案
您需要将项目迁移到 Android X,只能通过 Android studio 3.3 进行。
Follow the procedures here to Migrate your Project to Android X
关于android - 任务 ':app:preDebugBuild' 的 Flutter 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55010037/