libgdx: Could not resolve com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT
Issue details
Since about 15:00 GMT(+1) I cannot build my project any more with gdxVersion ‘1.10.1-SNAPSHOT’. It worked just a few minutes before that. I already tried to clear caches, etc.
Reproduction steps/code
Try to build project with gdxVersion ‘1.10.1-SNAPSHOT’
Version of libGDX and/or relevant dependencies
1.10.1-SNAPSHOT
Stacktrace
Execution failed for task ':desktop:compileJava'.
> Could not resolve all files for configuration ':desktop:compileClasspath'.
> Could not resolve com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT.
Required by:
project :desktop
> No matching variant of com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT:20211220.104956-137 was found. The consumer was configured to find an API of a library compatible with Java 7, preferably in the form of class files, and its dependencies declared externally but:
- Variant 'apiElements' capability com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT declares an API of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 8 and the consumer needed a component compatible with Java 7
- Variant 'javadocElements' capability com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 7)
- Doesn't say anything about its elements (required them preferably in the form of class files)
- Variant 'runtimeElements' capability com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 8 and the consumer needed a component compatible with Java 7
- Variant 'sourcesElements' capability com.badlogicgames.gdx:gdx-backend-lwjgl3:1.10.1-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 7)
- Doesn't say anything about its elements (required them preferably in the form of class files)
Please select the affected platforms
- Android
- iOS
- HTML/GWT
- Windows
- Linux
- macOS
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- Fix new bug with gdx snapshot release https://github.com/libgdx/libgdx/issues/6737 — committed to AlexGUni/How-Hard-Can-It-Be by stanbsky 3 years ago
I tried updating to sourceCompatibility = 1.8 in all gradle files, it works now 👍