我已经坚持了一段时间的问题,我无法弄清楚它是什么.我最近更新了Mopub
Android SDK,两个插页式横幅广告(AdMob和Millennial Media)在此之前都运行良好.现在这些广告在发布版本中不起作用,但它们在调试版本中起作用.所以我认为这是proguard的一个问题,但我无法追踪它是什么.根据Mopub指南设置proguard.
-keep class com.google.ads.** -keep class com.millennialmedia.android.** -keep public class com.mopub.mobileads.* -keepclassmembers class com.millennialmedia.android.* { public *; }
在发布版本中,当我尝试显示广告时,我会收到以下日志:
I/MoPub (29856): Fetching ad network type: admob_native D/MoPub (29856): Loading custom event interstitial adapter. D/MoPub (29856): Attempting to invoke custom event: com.mopub.mobileads.GoogleAdMobInterstitial D/MoPub (29856): Couldn't locate or instantiate custom event: com.mopub.mobileads.GoogleAdMobInterstitial. I/MoPub (29856): Fetching ad network type: admob_native D/MoPub (29856): Loading custom event adapter. D/MoPub (29856): Attempting to invoke custom event: com.mopub.mobileads.GoogleAdMobBanner D/MoPub (29856): Couldn't locate or instantiate custom event: com.mopub.mobileads.GoogleAdMobBanner. V/MoPub (29856): MoPubErrorCode: Unable to find Native Network or Custom Event adapter.
请提出错误信息.对于任何反馈,我们都表示感谢.
此外,我不知道这是否相关,但我正在研究Cocos2dx Android项目.
谢谢.