EVolley [423] NetworkDispatcher.processRequest Unhandled exception java.lang.RuntimeException Bad URL

in mopub •  5 years ago 

EVolley [423] NetworkDispatcher.processRequest Unhandled exception java.lang.RuntimeException Bad URL
Subscribe all articles: https://www.patreon.com/posts/31606065
Buy single article: https://gum.co/JKAvG
update:
"old" solution doesn't work, I think it's mopub sdk bug, tmply don't use mopub

old:
reason and solution:
mopub init is not like other ad sdk, mopub init need wait it inited and then
load ad, so if i before ad init and load ad, it will raise some err, I use
following code to listen mopub init finish and then run load ad

boolean isInit = false;

@Override
public void init() {
    SdkConfiguration sdkConfiguration = new SdkConfiguration.Builder

(interstitialAdUnit)
.withLogLevel(MoPubLog.LogLevel.DEBUG)
.withLegitimateInterestAllowed(false)
.build();
MoPub.initializeSdk(act, sdkConf
...(see full article in relative links)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!