编译时我仍然会收到以下错误:
Error:(44,13) Failed to resolve: com.Google.firebase:firebase-core:9.6.0
我的SDK管理员说一切都是最新的:
Google Play services Rev. 33 installedGoogle Repository Rev. 35 installed
这是我的build.gradle内容:
apply plugin: 'com.androID.application'androID { compileSdkVersion 23 buildToolsversion '23.0.3' defaultConfig { applicationID "xxxx.xxxx" minSdkVersion 16 targetSdkVersion 23 versionCode 14 versionname "1.0" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro' } }}dependencIEs { // Support librarIEs compile 'com.androID.support:appcompat-v7:23.1.1' compile 'com.androID.support:design:23.1.1' // Google Apis // Note: AvoID compiling the entire play-services package. compile 'com.Google.androID.gms:play-services-gcm:9.4.0' compile 'com.Google.androID.gms:play-services-location:9.4.0' compile 'com.Google.androID.gms:play-services-maps:9.4.0' compile 'com.Google.androID.gms:play-services-places:9.4.0' compile 'com.Google.maps.androID:androID-maps-utils:0.4.4' compile 'org.Jsoup:Jsoup:1.9.2' compile 'com.Google.code.gson:gson:2.7' compile 'io.branch.sdk.androID:library:2.+' compile 'com.Google.firebase:firebase-core:9.6.0' //<-- CAUSING TROUBLE}apply plugin: 'com.Google.gms.Google-services'
这是我的root级build.gradle内容:
buildscript { repositorIEs { jcenter() } dependencIEs { classpath 'com.androID.tools.build:gradle:2.1.3' classpath 'com.Google.gms:Google-services:3.0.0' // NOTE: Do not place your application dependencIEs here; they belong // in the indivIDual module build.gradle files }}allprojects { repositorIEs { jcenter() }}
为什么不编译?
解决方法 尝试编译’com.Google.firebase:firebase-messaging:9.4.0’而不是编译’com.Google.firebase:firebase-core:9.6.0′ 总结以上是内存溢出为你收集整理的android – 无法解决:com.google.firebase:firebase-core:9.6.0全部内容,希望文章能够帮你解决android – 无法解决:com.google.firebase:firebase-core:9.6.0所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)