首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能解决: firebase-iid-interop

未能解决: firebase-iid-interop
EN

Stack Overflow用户
提问于 2018-07-05 15:36:39
回答 4查看 11.3K关注 0票数 16

这是屏幕截图

我已经面对这个问题了,有人能帮我吗?我到处找,但我找不到解决办法

代码语言:javascript
复制
Failed to resolve: firebase-common Open File
Failed to resolve: firebase-iid-interop Open File
Failed to resolve: firebase-measurement-connector Open File

我正在使用classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.google.gms:google-services:4.0.1'我的分级文件:

代码语言:javascript
复制
apply plugin: 'com.android.application'
android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
      applicationId "com.*****"
      minSdkVersion 15
      targetSdkVersion 27
      versionCode 20
      versionName "2.0"

      multiDexEnabled true
    }

    buildTypes {
      release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
    }
}

// Maven Repositories
repositories {

  google()
  mavenCentral()
  flatDir { dirs 'libs' }
  maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
  maven { url "https://bitbucket.org/adscend/androidsdk/raw/master/" }
  maven { name "Fyber's maven repo"
        url "https://fyber.bintray.com/maven" }

}

dependencies {

  // test Libraries
  implementation fileTree(include: ['*.jar'], dir: 'libs')
  testImplementation 'junit:junit:4.12'

  // Android Support Libraries
  implementation 'com.android.support:design:27.1.1'
  implementation 'com.android.support:support-v4:27.1.1'
  implementation 'com.android.support:customtabs:27.1.1'
  implementation 'com.android.support:cardview-v7:27.1.1'
  implementation 'com.android.support:appcompat-v7:27.1.1'
  implementation 'com.android.support:mediarouter-v7:27.1.1'
  implementation 'com.android.support:support-vector-drawable:27.1.1'

  // Adnetwork Libraries
  implementation 'com.fyber:fyber-sdk:8.19.0'
  implementation(name: 'adgatemediasdk', ext: 'aar')
  implementation(name: 'OfferToroSdk-v3.1.10', ext: 'aar')
  implementation 'com.adscendmedia.sdk:adscendmedia:2.3.4'
  implementation 'com.ironsource.sdk:mediationsdk:6.7.4@jar'

  // MultiDex Dependency
  implementation 'com.android.support:multidex:1.0.3'

  // Other Libraries
  implementation 'com.squareup.okio:okio:1.14.0'
  implementation 'com.google.code.gson:gson:2.8.1'
  implementation 'com.nineoldandroids:library:2.4.0'
  implementation 'com.squareup.okhttp3:okhttp:3.10.0'
  implementation 'com.squareup.picasso:picasso:2.5.2'
  implementation 'de.hdodenhof:circleimageview:2.2.0'
  implementation 'com.mcxiaoke.volley:library:1.0.18'
  implementation 'com.github.d-max:spots-dialog:0.7@aar'
  implementation 'com.github.paolorotolo:appintro:4.1.0'
  implementation 'org.apache.httpcomponents:httpclient-android:4.3.5'
  implementation 'com.facebook.network.connectionclass:connectionclass:1.0.1'

  // Facebook Login only
  implementation 'com.facebook.android:facebook-login:4.34.0'

  // slider library
  implementation 'com.daimajia.slider:library:1.1.5@aar'

  // Google Libraries
  implementation 'com.google.firebase:firebase-messaging:17.1.0'
  implementation 'com.google.firebase:firebase-auth:16.0.2'
  implementation 'com.google.firebase:firebase-analytics:16.0.1'

  // Firebase
  implementation 'com.google.firebase:firebase-ads:15.0.1'
  implementation 'com.google.firebase:firebase-messaging:17.1.0'

}

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

谢谢你。

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2018-07-05 15:49:27

在Firebase的6月12日发布中,必须显式地包含firebase-core

您的应用程序gradle文件现在必须显式地将com.google.firebase:firebase-core列为Firebase服务按预期工作的依赖项。

添加:

代码语言:javascript
复制
implementation 'com.google.firebase:firebase-core:16.0.1'
票数 18
EN

Stack Overflow用户

发布于 2018-11-05 16:35:39

您需要将google()存储库放在 jcenter()之前。

这是因为Google从jcenter中删除了他们的项目,但错误地将一些工件与依赖项放在了一起。

代码语言:javascript
复制
buildscript {
    repositories {
        google()
        jcenter()
    }

...

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
票数 50
EN

Stack Overflow用户

发布于 2018-10-28 13:12:52

将依赖项版本更新为最新版本。为我工作过。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51195242

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档