Sky24n/flustars

flutter 1.12.13+hotfix.5 编译报错

grapewheel opened this issue · 6 comments

Could not compile build file '/opt/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/android/build.gradle'

哪一个flutter分支呢

Flutter is already up to date on channel stable
Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git

我这边能正常运行,你把项目清除下,flutter clean试试
Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.17763.914], locale zh-CN)

flutter clean并重启后依然不行,我用的是 flustars 0.2.6+1

把.pub-cache/hosted/pub.dartlang.org文件夹下的path_provider库删除了,然后重新flutter packages get试试

我找到原因了,是由于jdk版本过高导致编译失败,flutter目前只能用1.8