Android MobileAds.initialize()和InterInitialiad.loadAd()策略冲突
我在Google Play控制台上报告了一些ANR的错误。 我打开严格模式,如下所示:Android MobileAds.initialize()和InterInitialiad.loadAd()策略冲突,android,admob,Android,Admob,我在Google Play控制台上报告了一些ANR的错误。 我打开严格模式,如下所示: StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectAll() .penaltyLog() .build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
我注意到只有在AdMob方法中存在违规行为:
MobileAds.initialize(this, "YOUR_ADMOB_APP_ID");
以及:
MobileAds.initialize()上的错误日志:
并在间隙上加载。加载()
我想问一下,是否有人发现了这些问题?
如果是,错误是否可能提供给ANR?
如何消除此问题?类似:应注意,引用的仅提供有关磁盘读取的违规问题的答案。它没有提供第二部分的答案,即缓慢的UI调用。
interstitialAd.loadAd(adReqest);
StrictMode policy violation; ~duration=827 ms:
android.os.StrictMode$StrictModeDiskReadViolation:
stack=android.os.StrictMode$StrictModeCustomViolation:
policy=4259871 violation=8 msg=gcore.dynamite
at android.os.StrictMode$AndroidBlockGuardPolicy.onCustomSlowCall(StrictMode.java:1280)
at android.os.StrictMode.noteSlowCall(StrictMode.java:2225)