After Google Play Service update to version 13 I got an error

后端 未结 8 1301
小蘑菇
小蘑菇 2020-11-22 06:02

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

8条回答
  •  清酒与你
    2020-11-22 06:41

    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.

提交回复
热议问题