无法找到或实例化自定义事件:“com.mopub.mobileads.VungleInterstitial”

时间:2016-12-10 11:17:29

标签: android android-studio mopub vungle-ads

在Mopub admob interstitial& Facebook interstitial工作正常,但对于丛林我得到像这样的调试消息

无法找到或实例化自定义事件:“com.mopub.mobileads.VungleInterstitial”。

enter image description here

 D/MoPub: Loading custom event interstitial adapter.
 D/MoPub: Attempting to invoke custom event: "com.mopub.mobileads.VungleInterstitial"
 D/MoPub: Couldn't locate or instantiate custom event: "com.mopub.mobileads.VungleInterstitial".
 V/MoPub: MoPubErrorCode: Unable to find Native Network or Custom Event adapter.
 D/MoPub: Loading failover url:

Gradle文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.example.mopubads"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 11
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile('com.mopub:mopub-sdk:4.9.0@aar') {
        transitive = true
    }   
    compile 'com.google.firebase:firebase-ads:10.0.1'   
    compile 'com.facebook.android:audience-network-sdk:4.15.0'
    compile 'com.mopub.volley:mopub-volley:1.1.0'
    compile files('libs/dagger-2.7.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/vungle-publisher-adaptive-id-4.0.3.jar')

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

proguard的

-keep public class com.google.ads.** {
   public *;
}
-keep class com.facebook.ads.** { *; }

-keepclassmembers class com.mopub.** { public *; }
-keep public class com.mopub.**
-keep class com.mopub.mobileads.** {*;}


-dontwarn com.vungle.**
-keep class com.vungle.** { *; }
-keep class javax.inject.*

0 个答案:

没有答案