Android Studio LibGDX Gradle Sync Error

前端 未结 1 658
闹比i
闹比i 2021-01-24 09:29

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

相关标签:
1条回答
  • 2021-01-24 10:01

    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.

    0 讨论(0)
提交回复
热议问题