I tried to add Google Analytics v4.0 via Google Play Services to my android project.
The compiler shows an error in global_tracker.xml and says:
...
<screenName name="com.google.android.gms.analytics.samples.mobileplayground.ScreenviewFragment">
AnalyticsSampleApp ScreenViewSampleScreen
</screenName>
...
Error: Found tag screenName where item is expected
Found the problem:
global_tracker.xml was copied to res/values folder, while should be copied to res/xml folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With