我已按照此 链接 将广告集成到我的应用程序中。但它显示了这个错误:
这是我的 build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.example.personal.numbermania"
minSdkVersion 10
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
debug
{
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.google.firebase:firebase-ads:9.6.0'
}
}
广告没有出现在真实设备中。请帮助我这是我更新类路径错误后的 错误
原文由 Lakshmi 发布,翻译遵循 CC BY-SA 4.0 许可协议
在我的情况下,上面的答案都没有帮助,但是完全按照本教程做了。 适用于 Android 的 Maps SDK / 设置 Android Studio 项目