每次我运行任何应用程序时,颤振都会给我错误
Posted
技术标签:
【中文标题】每次我运行任何应用程序时,颤振都会给我错误【英文标题】:Flutter gives me error everytime i run any app 【发布时间】:2020-08-13 13:05:55 【问题描述】:我最近安装了 Flutter,但每当我运行任何 Flutter 应用程序时,它都会显示此错误 -
FAILURE: Build failed with an exception.
* Where:
Script '/Users/ashvinbhagat/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1
* What went wrong:
Could not compile script '/Users/ashvinbhagat/development/flutter/packages/flutter_tools/gradle/flutter.gradle'.
> startup failed:
script '/Users/ashvinbhagat/development/flutter/packages/flutter_tools/gradle/flutter.gradle': 1: expecting EOF, found ':' @ line 1, column 32.
Script started on Wed Apr 29 18:07:22 2020
^
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Finished with error: Gradle task assembleDebug failed with exit code 1
我应该如何解决它,这不是我的应用程序的问题,是颤振的问题
【问题讨论】:
你看过这个question?它可能对你有帮助。 不,它没有用。 更改flutter版本并创建一个新项目看看会发生什么 【参考方案1】:经过多次尝试,我解决了更改 cached_network_image 的问题
cached_network_image: ^2.1.0+1
【讨论】:
以上是关于每次我运行任何应用程序时,颤振都会给我错误的主要内容,如果未能解决你的问题,请参考以下文章
每次我尝试通过存档验证我的应用程序时,Xcode 都会不断给我报亭错误