When you receive the error message “invalidversionspecerror: invalid version spec: =2.7” in a query-solving environment, it means that the version specification provided is not recognized or supported.
The version specification (=2.7) you mentioned is invalid because the equals sign (=) is not a valid part of a version specification.
In most cases, version specifications are specified without the equals sign. For example, if you want to specify version 2.7, you can use “2.7” without any additional characters or symbols.
Here is an example of a valid version specification for version 2.7:
2.7
Similar post
- Dialect needs to be explicitly supplied as of v4.0.0
- Caused by: org.gradle.api.invalidusercodeexception: cannot run
project.afterevaluate(closure) when the project is already evaluated.
- Onetimesetup: no suitable constructor was found
- No variants found for ‘:app’
- System.invalidoperationexception: ‘cannot modify servicecollection after