I am trying to implement an ad network's SDK and it requires me to add Google Play Services.
Now when I add compile 'com.google.android.gms:play-services:9.6.0'
to my gradle file I get an error (see bottom). This might be due to some other libraries already installed, but I can't figure out how to fix the files.
Project gradle:
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
}
}
Module gradle:
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
}
}
dependencies {
compile 'com.google.android.gms:play-services-appindexing:9.6.1'
compile 'com.google.android.gms:play-services:9.6.0' // The new line
}
apply plugin: 'com.google.gms.google-services'
The error:
Error:Execution failed for task ':appName:mergeDebugResources'. java.lang.OutOfMemoryError: unable to create new native thread
As said: without the new line, it runs perfectly.