How can I resolve this error?
Caused by: java.lang.illegalargumentexception 11-01 11:08:12.845: E/AndroidRuntime(28885): Caused by: java.lang.Illega
A few things changed since you asked that question. If you're using Google Play services 7.0 or newer, Gradle will automatically merge manifests and include the required meta-data for you.
Citing Ian Lake:
(...) Google Play services 7.0 also has one other time saving feature if you're using Gradle: it automatically includes the
entry in your AndroidManifest.xml for you - no need to manually add it! Perfect example of simple Manifest merging where libraries can add required meta-data, receivers, permissions, and anything else they made need - one less thing to forget!
Note: this does not apply to the full play-services or play-services-all-wear AARs - only the granular AARs have this built in.