Not allowed to load local resource on Android 4.4

2,149 views
Skip to first unread message

Vaclav Peroutka

unread,
Sep 4, 2014, 7:06:15 AM9/4/14
to google-adm...@googlegroups.com
Hello,

I started to play with AdMob. I am able to build the test application but in the LOG I see messages below. I noticed that issue appears from Android 4.4 policy. What do I have to do to get the Ads working correctly ?

09-04 06:13:19.990: I/Ads(979): Starting ad request.
09-04 06:13:20.010: I/Ads(979): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
09-04 06:13:20.680: E/Ads(979): JS: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (data:text/html,chromewebdata:12)
09-04 06:13:20.680: I/chromium(979): [INFO:CONSOLE(12)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (12)
09-04 06:13:20.830: E/Ads(979): JS: Uncaught ReferenceError: AFMA_buildAdURL is not defined (data:text/html,chromewebdata:1)
09-04 06:13:20.830: I/chromium(979): [INFO:CONSOLE(1)] "Uncaught ReferenceError: AFMA_buildAdURL is not defined", source: data:text/html,chromewebdata (1)
09-04 06:14:20.020: W/Ads(979): Timed out waiting for ad response.

Amy Quispe (AdMob SDK Team)

unread,
Sep 4, 2014, 8:10:47 PM9/4/14
to google-adm...@googlegroups.com
Hi Vaclav,

I haven't seen this before. Just confirming, you're seeing this with the current test app?

Amy Quispe

Vaclav Peroutka

unread,
Sep 5, 2014, 2:26:56 AM9/5/14
to google-adm...@googlegroups.com
Hi Amy,

this is my own test application. I am getting this when I am connected to the WiFi but router is not connected to the internet. I expect that some local file should appear instead of the ad image. I can share some code or more info if it helps.

Vaclav

Amy Quispe (AdMob SDK Team)

unread,
Sep 5, 2014, 3:09:43 PM9/5/14
to google-adm...@googlegroups.com
Hi Vaclav,

This error is to be expected if you're offline, because then we can't fetch the js.

Amy Quispe

William Ferguson

unread,
Sep 8, 2014, 12:45:11 AM9/8/14
to google-adm...@googlegroups.com
Amy, is all of that log really necessary for a condition that is expected to happen (no internet connection)

09-04 06:13:20.680: E/Ads(979): JS: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (data:text/html,chromewebdata:12)
09-04 06:13:20.680: I/chromium(979): [INFO:CONSOLE(12)] "Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png", source: data:text/html,chromewebdata (12)
09-04 06:13:20.830: E/Ads(979): JS: Uncaught ReferenceError: AFMA_buildAdURL is not defined (data:text/html,chromewebdata:1)
09-04 06:13:20.830: I/chromium(979): [INFO:CONSOLE(1)] "Uncaught ReferenceError: AFMA_buildAdURL is not defined", source: data:text/html,chromewebdata (1)

Surely the "Timed out waiting for response" warning is sufficient.

William
Reply all
Reply to author
Forward
0 new messages