在 Mopub admob interstitial 和 facebook interstitial 中工作正常,但对于 vungle 我收到这样的调试消息
无法定位或实例化自定义事件:“com.mopub.mobileads.VungleInterstitial”。
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:
摇篮文件
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'
前卫
-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.*