我想在我的项目中实施谷歌分析,同时我在运行我的项目时使用了一些谷歌身份验证依赖项我得到了这样的错误.....请帮助我找到解决这个问题的方法 - -
这是我的build.gradle(应用级别)
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':volley')
compile project(':materialviewpager')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'io.github.yavski:fab-speed-dial:1.0.3'
compile 'com.wdullaer:materialdatetimepicker:2.2.0'
compile 'com.jaredrummler:material-spinner:1.0.5'
compile 'it.neokree:MaterialTabs:0.11'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'me.tatarka.support:jobscheduler:0.1.1'
compile 'com.google.android.gms:play-services-auth:9.2.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha2'
compile 'com.google.android.gms:play-services-analytics:8.1.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
我收到了这样的错误
Error:Failed to resolve: com.google.android.gms:play-services-measurement:9.2.1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:D:/Office Project/RealMilk/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
提前致谢.....
答案 0 :(得分:0)
我认为您必须更改项目主classpath
中的build.gradle
。
com.google.gms:google-services:3.0.0
到此。