I'm trying to include Google Play Game Services in my Android game and I tried adding BaseGameUtils library. But it is not really working.
I can call the GameHelper
class from AndroidLauncher
but not the Games
class for getting leaderboards.
I also have this warning in my console: (which does not interfere with the actual problem - see the answer)
project ':android': Unable to resolve additional project configuration.
Details: groovy.lang.MissingPropertyException: Could not find property 'main' on SourceSet container.
Can somebody give any insight to this problem?
This is my android gradle: http://pastebin.com/ya85gGs4
And this my BaseGameUtils gradle: http://pastebin.com/0iyz2j12
Also the root gradle: http://pastebin.com/in2MmYMM
When I check Project Structure -> Problems, I have these messages:
EDIT: I have tried changing android support library, appcompat and google play services to different versions including the latest ones but this error keeps pissing me off.
PS: Please feel free to edit the title. I put the date because I wanted to imply that this is a recent issue.