I already read many answers on this subject but can\'t fix my problem, and here it is :
I have a gradle project that is a game, in that game I want to add google gam
Your settings.gradle
should be:
include ':MyModule', ':BaseGameUtils'
Note the comma.
Your build.gradle
for MyModule
should also have
dependencies {
compile 'com.android.support:support-v4:18.+'
compile 'com.google.android.gms:play-services:3.+'
compile project(':BaseGameUtils')
}
When I was following the step-by-step here: https://developers.google.com/games/services/android/init
I was hung up on:
dependencies {
compile project(':BaseGameUtils')
// ...
}
and I just needed to change it to:
dependencies {
compile project(':libraries:BaseGameUtils')
// ...
}
hope that helps someone :)