- 具体错误
Build file D:/Nanjing-SVN/UVCCameraProDemoLTS-v5.02/build.gradle line: 27
A problem occurred evaluating root project UVCCameraProDemoLTS-v5.02.
> Cannot add task wrapper as a task with that name already exists.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project UVCCameraProDemoLTS-v5.02.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
- 解决办法
task wrapper(type: Wrapper) {
gradleVersion = 4.4
}
改为
wrapper {
gradleVersion = 4.4
}