Межстраничная реклама прерывается после обновления gradle / firebase, возвращает ошибку "Uncaught ReferenceError: videoInterstitial is not defined" - PullRequest
1 голос
/ 06 августа 2020

У меня были межстраничные тестовые объявления, которые отлично работали в отладочной версии приложения. Поэтому я ввел свой идентификатор для реальной рекламы (заменив идентификатор тестовой рекламы). Работало отлично, пока я не попробовал "релизную" версию приложения. Нет рекламы. Итак, я добавил firebase и обновился до последней версии Gradle, теперь реклама не отображается вообще. Кроме того, магазин Google Play вынудил меня изменить целевую версию SDK на 29 +

    apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "my app id goes here"
        minSdkVersion 24
        targetSdkVersion 29
        versionCode 3
        versionName "1.31"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

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

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:recyclerview-v7:29'
    implementation 'com.android.support:cardview-v7:29'
    implementation 'com.google.firebase:firebase-analytics:17.4.4'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.firebase:firebase-ads:19.3.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
    implementation 'com.google.android.gms:play-services-ads:19.3.0'

    def lottieVersion = '3.4.1'
    implementation "com.airbnb.android:lottie:$lottieVersion"

    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

    dependencies {
        def billing_version = "3.0.0"
        implementation "com.android.billingclient:billing:$billing_version"

    }
}

Может ли кто-нибудь объяснить, почему это сейчас не работает? Измерение приложений теперь включено для firebase

...