title: Trying to add BaseGameUtils to LibGdx project in android studio
body: <p>So I have a LibGdx game which I want to add Google play services to. I am using android studio but I can't find any good tutorials.</p>
  
  <p>I have the BaseGameUtils in the root directory of my game. My settings.gradle file looks like</p>
  
  <pre><code>include 'android', 'ios', 'core', 'BaseGameUtils'
  </code></pre>
  
  <p>I added <strong>compile project(':BaseGameUtils')</strong> to the android dependencies of my build.gradle file which works fine and I can use the classes in the android project fine. However I can't access the classes in the core project and I want to pass a GameHandler to the game so that I can use achievements and leaderboards.</p>
  
  <p>So I tried adding the same line to the core section of the gradle file so that it looked like</p>
  
  <pre><code>project(":core") {
  apply plugin: "java"
  
  
  dependencies {
      compile "com.badlogicgames.gdx:gdx:$gdxVersion"
      compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
      compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
      compile fileTree(dir: '../libs', include: '*.jar')
      compile project(':BaseGameUtils')
  }
  }
  </code></pre>
  
  <p>but this results in an error.</p>
  
  <p>Android studio gives me this <strong>core depends on libraries but is not a library itself</strong> error</p>