Add Google Analytics to Android project - Error: U

2019-09-06 17:43发布

I followed this link to add Analytics to my project: https://developers.google.com/analytics/devguides/collection/android/v4/

This is my project level build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.google.gms:google-services:3.0.0'

    }
}

and this is my module build.gradle (I put the plugin at the bottom of the file):

dependencies {
    compile 'com.google.android.gms:play-services-analytics:9.2.0'
    compile 'com.android.support:support-v4:18.0.0'
    compile 'com.android.support:appcompat-v7:18.0.0'
    compile 'org.quanqi:android-view-pager-indicator:0.9.0'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.makeramen:roundedimageview:2.2.1'
    compile 'com.github.bumptech.glide:glide:3.6.1'
}

apply plugin: 'com.google.gms.google-services'

I followed the link step by step but I got this error: enter image description here

(I'm using gralde plugin v 2.10)

What is wrong?!!!

0条回答
登录 后发表回答