After trying to run the gradle sync I get this error. I\'m not sure if this is somehow related to libgdx or is it just a Gradle problem.
Configuration \'c
Gradle 3.4 introduced new Java Library plugin configurations that allow you to control whether a dependency is published to the compile and runtime classpaths of projects that consume that library.
implementation
and api
can only be used with Android Plugin for Gradle 3.0.0
or later version.
Android plugin 3.0.0 requires Gradle version 4.1 or higher.
Gradle 4.x is not supported yet in LibGDX, there is an issue for the same.
So currently you can't use implementation
or api
with libGDX
so stick with obsoleted api and use compile
.