How to Fix libGDX Gradle Error in Android Studio

preview_player
Показать описание
When starting up a new libGDX environment, you may see an error with the following message:

"Could not resolve all files for configuration ':classpath'

and

Рекомендации по теме
Комментарии
Автор

you could still use gradle-4.6-bin.zip, and mantain google() if you change your android build toos to: com.android.tools.build:gradle:2.3.3, android desktop ios and html will work fine.

JaviepalFordring
Автор

Thanks, finally i can move to the next step.. very great

reja
Автор

OMG THanks a lot! I've been struggling with this for quite some time, until I saw a post by "Kayle Nally" referring to this video. Thanks a lot! <3

nobleshopper
Автор

thank you so much for this video! I always hate it when those annoying (and boring) configuration errors are happening and you have to search google for hours to find the answer for your specific setup.

Luckily I found your video and it was short and very well explained - perfect job! :)

Quillraven
Автор

Thanks, this worked perfectly for me!

aidanblair
Автор

sorry, i have this error :


Information:Gradle: Executing tasks: [:desktop:assemble, :core:assemble]
Information:18/03/2018 12:28 - Compilation completed with 101 errors and 1 warning in 7s 998ms
Error:Gradle: Execution failed for task ':core:compileJava'.
> Compilation failed; see the compiler error output for details.
Warning:Gradle: [options] bootstrap class path not set in conjunction with -source 1.6
D:\nkola\Progetti Android
Error:(47, 44) Gradle: error: cannot find symbol variable V_WIDTH
Error:(47, 63) Gradle: error: cannot find symbol variable V_HEIGHT
D:\nkola\Progetti Android
Error:(32, 44) Gradle: error: cannot find symbol variable V_WIDTH
Error:(32, 63) Gradle: error: cannot find symbol variable V_HEIGHT
Error:(33, 49) Gradle: error: incompatible types: Game cannot be converted to MarioBros
Error:(59, 54) Gradle: error: incompatible types: Game cannot be converted to MarioBros
D:\nkola\Progetti Android
Error:(72, 44) Gradle: error: cannot find symbol variable V_WIDTH
Error:(72, 64) Gradle: error: cannot find symbol variable PPM
Error:(72, 79) Gradle: error: cannot find symbol variable V_HEIGHT
Error:(72, 100) Gradle: error: cannot find symbol variable PPM
Error:(75, 26) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(80, 69) Gradle: error: cannot find symbol variable PPM
Error:(97, 25) Gradle: error: cannot find symbol variable manager
Error:(157, 61) Gradle: error: cannot find symbol variable PPM
Error:(195, 12) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(196, 12) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(197, 24) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(199, 27) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(201, 26) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(202, 12) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(205, 12) Gradle: error: batch is not public in MarioBros; cannot be accessed from outside package
Error:(209, 46) Gradle: error: incompatible types: MarioBros cannot be converted to Game
D:\nkola\Progetti Android
Error:(41, 77) Gradle: error: cannot find symbol variable PPM
Error:(41, 131) Gradle: error: cannot find symbol variable PPM
Error:(45, 58) Gradle: error: cannot find symbol variable PPM
Error:(45, 96) Gradle: error: cannot find symbol variable PPM
Error:(55, 77) Gradle: error: cannot find symbol variable PPM
Error:(55, 131) Gradle: error: cannot find symbol variable PPM
Error:(59, 58) Gradle: error: cannot find symbol variable PPM
Error:(59, 96) Gradle: error: cannot find symbol variable PPM
Error:(61, 48) Gradle: error: cannot find symbol variable OBJECT_BIT
Error:(80, 66) Gradle: error: cannot find symbol variable PPM
Error:(80, 95) Gradle: error: cannot find symbol variable PPM
Error:(85, 66) Gradle: error: cannot find symbol variable PPM
Error:(85, 95) Gradle: error: cannot find symbol variable PPM
D:\nkola\Progetti Android
Error:(101, 38) Gradle: error: cannot find symbol variable PPM
Error:(101, 58) Gradle: error: cannot find symbol variable PPM
Error:(120, 121) Gradle: error: cannot find symbol variable PPM
Error:(150, 46) Gradle: error: incompatible types: Object cannot be converted to TextureRegion
Error:(159, 36) Gradle: error: incompatible types: Object cannot be converted to TextureRegion
Error:(216, 21) Gradle: error: cannot find symbol variable manager
Error:(224, 21) Gradle: error: cannot find symbol variable manager
Error:(225, 21) Gradle: error: cannot find symbol variable manager
Error:(228, 39) Gradle: error: cannot find symbol variable NOTHING_BIT
Error:(265, 25) Gradle: error: cannot find symbol variable manager
Error:(283, 37) Gradle: error: cannot find symbol variable PPM
Error:(284, 44) Gradle: error: cannot find symbol variable MARIO_BIT
Error:(285, 40) Gradle: error: cannot find symbol variable GROUND_BIT
Error:(286, 25) Gradle: error: cannot find symbol variable COIN_BIT
Error:(287, 25) Gradle: error: cannot find symbol variable BRICK_BIT
Error:(288, 25) Gradle: error: cannot find symbol variable ENEMY_BIT
Error:(289, 25) Gradle: error: cannot find symbol variable OBJECT_BIT
Error:(290, 25) Gradle: error: cannot find symbol variable ENEMY_HEAD_BIT
Error:(291, 25) Gradle: error: cannot find symbol variable ITEM_BIT
Error:(297, 43) Gradle: error: cannot find symbol variable PPM
Error:(297, 62) Gradle: error: cannot find symbol variable PPM
Error:(297, 94) Gradle: error: cannot find symbol variable PPM
Error:(297, 113) Gradle: error: cannot find symbol variable PPM
Error:(298, 44) Gradle: error: cannot find symbol variable MARIO_HEAD_BIT
Error:(313, 63) Gradle: error: cannot find symbol variable PPM
Error:(319, 37) Gradle: error: cannot find symbol variable PPM
Error:(320, 44) Gradle: error: cannot find symbol variable MARIO_BIT
Error:(321, 40) Gradle: error: cannot find symbol variable GROUND_BIT
Error:(322, 25) Gradle: error: cannot find symbol variable COIN_BIT
Error:(323, 25) Gradle: error: cannot find symbol variable BRICK_BIT
Error:(324, 25) Gradle: error: cannot find symbol variable ENEMY_BIT
Error:(325, 25) Gradle: error: cannot find symbol variable OBJECT_BIT
Error:(326, 25) Gradle: error: cannot find symbol variable ENEMY_HEAD_BIT
Error:(327, 25) Gradle: error: cannot find symbol variable ITEM_BIT
Error:(331, 56) Gradle: error: cannot find symbol variable PPM
Error:(335, 43) Gradle: error: cannot find symbol variable PPM
Error:(335, 62) Gradle: error: cannot find symbol variable PPM
Error:(335, 94) Gradle: error: cannot find symbol variable PPM
Error:(335, 113) Gradle: error: cannot find symbol variable PPM
Error:(336, 44) Gradle: error: cannot find symbol variable MARIO_HEAD_BIT
Error:(346, 40) Gradle: error: cannot find symbol variable PPM
Error:(346, 60) Gradle: error: cannot find symbol variable PPM
Error:(352, 37) Gradle: error: cannot find symbol variable PPM
Error:(353, 44) Gradle: error: cannot find symbol variable MARIO_BIT
Error:(354, 40) Gradle: error: cannot find symbol variable GROUND_BIT
Error:(355, 25) Gradle: error: cannot find symbol variable COIN_BIT
Error:(356, 25) Gradle: error: cannot find symbol variable BRICK_BIT
Error:(357, 25) Gradle: error: cannot find symbol variable ENEMY_BIT
Error:(358, 25) Gradle: error: cannot find symbol variable OBJECT_BIT
Error:(359, 25) Gradle: error: cannot find symbol variable ENEMY_HEAD_BIT
Error:(360, 25) Gradle: error: cannot find symbol variable ITEM_BIT
Error:(366, 43) Gradle: error: cannot find symbol variable PPM
Error:(366, 62) Gradle: error: cannot find symbol variable PPM
Error:(366, 94) Gradle: error: cannot find symbol variable PPM
Error:(366, 113) Gradle: error: cannot find symbol variable PPM
Error:(367, 44) Gradle: error: cannot find symbol variable MARIO_HEAD_BIT
D:\nkola\Progetti Android
Error:(29, 48) Gradle: error: cannot find symbol variable PPM
Error:(29, 68) Gradle: error: cannot find symbol variable PPM
D:\nkola\Progetti Android
Error:(36, 48) Gradle: error: cannot find symbol variable PPM
Error:(36, 68) Gradle: error: cannot find symbol variable PPM
Error:(53, 12) Gradle: error: no suitable method found for setRegion(Object)
method is not applicable
(argument mismatch; Object cannot be converted to Texture)
method is not applicable
(argument mismatch; Object cannot be converted to TextureRegion)
Error:(66, 37) Gradle: error: cannot find symbol variable PPM
Error:(67, 44) Gradle: error: cannot find symbol variable ENEMY_BIT
Error:(68, 40) Gradle: error: cannot find symbol variable GROUND_BIT
Error:(69, 25) Gradle: error: cannot find symbol variable COIN_BIT

nkola
Автор

Thanks but now i am getting this error. Error:Gradle: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define
When trying to use Hiero to create a font

zh