【发布时间】:2020-04-07 11:07:59
【问题描述】:
我有一个在另一台机器上完美构建的颤振应用程序(ubuntu 18.04)。现在我正在使用 ubuntu 19.10 ,当我尝试使用 flutter run 命令运行这个应用程序时,它会抛出这些错误:
Launching lib/main.dart on Primo EF6 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Cannot create service of type PayloadSerializer using ToolingBuildSessionScopeServices.createPayloadSerializer() as there is a problem with parameter #2 of type PayloadClassLoaderFactory.
> Cannot create service of type PayloadClassLoaderFactory using ToolingBuildSessionScopeServices.createClassLoaderFactory() as there is a problem with parameter #1 of type CachedClasspathTransformer.
* 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 4s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 5.5s
Gradle task assembleDebug failed with exit code 1
我认为这是 gradle 问题。我正在使用flutter v1.12.13+hotfix.6
【问题讨论】: