【发布时间】:2022-01-06 01:03:39
【问题描述】:
尝试在我的手机上以调试模式运行我的颤振应用程序时,I received this exception in the debug console 并因此执行失败。有没有办法处理这个构建失败?
【问题讨论】:
尝试在我的手机上以调试模式运行我的颤振应用程序时,I received this exception in the debug console 并因此执行失败。有没有办法处理这个构建失败?
【问题讨论】:
从您的项目中删除您的build floder 并再次尝试。希望它会起作用。
或
只需要在build.gradle文件中添加如下代码:
configurations.all {
resolutionStrategy {
force 'androidx.media:media:1.0.0'
}
}
【讨论】:
build.gradle文件。你说的是./android/app/build.gradle文件还是./android/build.gradle文件?
转到安卓> gradle-wrapper.properties.
更改 gradle 版本。(对我来说 gradle 版本 6.5 和 6.3 工作正常)go here to see gradle versions
从终端输入
cd 安卓
毕业典礼
3。运行 Flutter clean 并运行
【讨论】:
flutter clean命令降级了几个重要的flutter包,引发了不少新的错误。有没有其他方法可以解决这个问题?