【发布时间】:2018-06-20 05:38:41
【问题描述】:
我在添加 firebase 或 google 广告时遇到 gradle 问题:
。
您还可以从下面的 gradle 检查代码。我错过了什么?
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.jnugzar"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
}
【问题讨论】:
-
请帮帮我..
-
您是否阅读了 IDE 中显示的链接?
-
我现在没有,我刚开始使用android studio)
-
在您的屏幕截图底部有一个链接可以告诉您出了什么问题。
-
@NugoJaparidze 也有类似的问题,请更新您的广告库并添加 firebase 核心,查看我的答案
标签: android firebase gradle android-gradle-plugin