This forum post seems to have an answer to the same problem: Error with Java dependency "couldn't resolve the cycloneDX Gradle plugin "
This looks like it's been fixed in Mendix 10.8. Can you try installing this version and seeing if it works for you?
https://docs.mendix.com/releasenotes/studio-pro/10.8/#fixes
Good luck!
Anyone knows how to fix this error?