I'm adding a wear module to an app. (using this sample code as a reference)
So I have 3 modules, each one depends on a version of com.google.android.gms:play-services:
- app - compile 'com.google.android.gms:play-services:6.1.11'
- wear - 'com.google.android.gms:play-services-wearable:6.5.+'
- shared - compile 'com.google.android.gms:play-services:6.1.11'
When compiling the Wear module, I get this error:
Error:Execution failed for task ':wear:processDebugResources'. Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0
Obviously, if I change play-services-wearable play-services in the wear module's build.gradle, everything works fine, however from what I understand, play-services-wearable is a light-weight version of play-services.
Is there a way, considering my app's structure, to use play-services-wearable in my wear module?