Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem occurred evaluating root project 'dataflow-video-analytics'. #17

Open
wallwriting opened this issue May 2, 2022 · 1 comment

Comments

@wallwriting
Copy link

When I run gradle spotlessApply -DmainClass=com.google.solutions.df.video.analytics.VideoAnalyticsPipeline, it gives me an error:

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/student_00_2f9371f11e09/dataflow-video-analytics/build.gradle' line: 75

  • What went wrong:
    A problem occurred evaluating root project 'dataflow-video-analytics'.

Could not find method compile() for arguments [{group=org.apache.beam, name=beam-sdks-java-core, version=2.23.0}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s

@mdavis6890
Copy link

You might need to downgrade Gradle to be compatible. Something like this:

wget https://services.gradle.org/distributions/gradle-6.9.2-bin.zip
sudo unzip -d /opt/gradle gradle-6.9.2-bin.zip
export PATH=/opt/gradle/gradle-6.9.2/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants