Tagmanager and datalayer are missing in android-10.0.1

I used the gradle script

    compile "com.google.android.gms:play-services-tagmanager:10.0.1"

But the import content of my application is red

import com.google.android.gms.tagmanager.DataLayer;
import com.google.android.gms.tagmanager.TagManager;

When I tried to find those classes, they didn't exist. Did Google move them elsewhere and they're in fire now?

resolvent:

I can't find any documentation or explanation for this change. After groping and looking at the library delivery dependency, I think adding this dependency will solve the missing import:

compile 'com.google.android.gms:play-services-tagmanager-v4-impl:10.0.1'

Another feasible option is to add a play service with all of the following functions:

compile 'com.google.android.gms:play-services:10.0.1'

However, this will make your API exceed your needs, make your APK larger, and may require you to configure multidex for the device before the lollipop

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>