This is not a complete solution, but just a workaround...
You are right about the google-play-services_lib: it contains a fat jar with all the services. If you just copy this jar to your libs folder, you won't need any of the dependencies but this:
dependencies {
// compile fileTree(include: ['*.jar'], dir: 'libs')
// compile 'com.google.android.gms:play-services-ads:7.5.0'
androidCompile files('libs/google-play-services.jar')
}
Now, you can build your project, but you'll still need the meta-data on the manifest file.
If you have a look at google-play-services_lib folder, you'll also find a res/values
folder, with a version.xml
file. There you have what you are looking for. So now you can find the value editing this file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="google_play_services_version">7571000</integer>
</resources>
and replacing the string on AndroidManifest.xml:
<meta-data android:name="com.google.android.gms.version" android:value="7571000" />
But since you will need those resources as well as the jar, I think it's a better approach copying all the res content into your android/res folder.
Now you should be able to build your apk.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…