Android 在ubuntu 19.10中,颤振构建失败
我有一个在另一台机器上完美构建的颤振应用程序(ubuntu 18.04)。现在我使用的是Ubuntu19.10,当我尝试使用flatter run命令运行这个应用程序时,它会抛出以下错误:Android 在ubuntu 19.10中,颤振构建失败,android,gradle,flutter,Android,Gradle,Flutter,我有一个在另一台机器上完美构建的颤振应用程序(ubuntu 18.04)。现在我使用的是Ubuntu19.10,当我尝试使用flatter run命令运行这个应用程序时,它会抛出以下错误: Launching lib/main.dart on Primo EF6 in debug mode... FAILURE: Build failed with an exception. * What went wrong:
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
我认为这是格雷德尔的问题。我正在使用颤振v1.12.13+修补程序。6已修复此问题。.gradle目录上存在权限问题,它是只读的。所以更改权限可以解决这个问题