flutter - Gradle Exception in build apk in flutter
问题描述
I got this exception
Could not resolve all dependencies for configuration ':app:debugCompileClasspath'. Problems reading data from Binary store in C:\Users\Bos we Tol\AppData\Local\Temp\gradle7580153242877513998.bin offset 394857 exists? true
but before 2 days I was run it successfully
解决方案
You can fix it by one of:
- Change the gradle version to
6.7-all
by changedistributionUrl
in path<YOUR FLUTTER PROJECT>/android/gradle/wrapper/gradle-wrapper.properties
to be like:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
- Change the jdk version to
11
by install it and changeJAVA_HOME
in env. vars.
推荐阅读
- methods - F# - 调用方法并分配给构造函数中的属性
- python - 从 url 请求中解压缩 zip 文件
- wpf - 是否可以在 WPF 中使用 GMap.Net Windows Form dll?
- html - 有没有办法使用 CSS 用楔形/三角形装饰线端?
- docker - Docker 提交 - 未保存数据库更改
- matlab - 如何防止带有“assertWarning”的 Matlab 测试将警告文本打印到控制台?
- assembly - 汇编比较来自 incloud 文件的变量
- javascript - Reactjs Ant-Design Menu - 更改子菜单外观
- linux - 远程启动 selenium
- perl - dsmod 用户地址选项卡