79760939

Date: 2025-09-10 13:54:35
Score: 2.5
Natty:
Report link

You might want to check your dependency tree to identify the conflict, see this Stackoverflow post and this documentation as your reference.

After confirming which dependency is pulling in the older version, exclude the transitive google-api-services-storage dependency from it. Then, explicitly declare the correct version you need as a new, top-level dependency in your pom.xml or build.gradle file.

This will allow Apache Beam 2.67.0 to provide its required, compatible version as a transitive dependency, which will resolve the NoSuchMethodError because the correct version contains the getSoftDeletePolicy() method.

Reasons:
  • Blacklisted phrase (1): this document
  • Blacklisted phrase (1): Stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: shiro