【问题标题】:Firebase conflicts my gradle *Mixing versions can lead to runtime crashes"Firebase 与我的 gradle 冲突 *混合版本会导致运行时崩溃”
【发布时间】:2018-11-21 10:24:54
【问题描述】:

至少我认为 firebase 是问题所在,因为它仅在我将 admob 添加到组合中时才会发生

如果我不添加此行 implementation 'com.google.firebase:firebase-ads:17.0.0' 一切正常。试图找到一种方法来找到这个库的旧版本来解决我的错误但没有运气

  implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'
    implementation 'com.android.support:design:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:palette-v7:27.1.1'
    implementation 'com.google.firebase:firebase-core:16.0.4'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.firebase:firebase-ads:17.0.0'

【问题讨论】:

标签: android firebase


【解决方案1】:

可以通过在 build.gradle 文件中添加以下代码行来解决这些警告:

implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:animated-vector-drawable:27.1.1'

【讨论】:

  • 好吧,这似乎可以解决问题> 但我在控制台上得到了这个,在 AndroidManifest 中添加了一个有效的 * * App ID 我只需要做我的清单并在我得到一个时添加我的 id没事吧?
【解决方案2】:

使用implementation 'com.google.firebase:firebase-ads:17.1.1'

【讨论】:

  • 您好,我在原始帖子中添加了错误作为屏幕截图
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-08-15
  • 1970-01-01
相关资源
最近更新 更多