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

in #mopub5 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)

Coin Marketplace

STEEM 0.19
TRX 0.16
JST 0.029
BTC 64841.81
ETH 2619.31
USDT 1.00
SBD 2.87