java - Working with Ads I get the message: The application (Appname) has stopped unexpectedly. Please try again -
hi guys working google ads got error when trying run app on mobile
" sorry- application (appname) has stopped unexpectedly. please try again "
note app run no problem in eclipse !
any cool
here manifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mased1.appflix" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="18" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="android.permission.access_wifi_state" /> <application android:allowbackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/theme.allinonevideo" > <activity android:name="com.mased1.appflix.splashactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="com.mased1.appflix.mainactivity" android:configchanges="orientation|keyboardhidden|screensize"></activity> <activity android:name="com.mased1.appflix.categoryitem" android:configchanges="orientation|keyboardhidden|screensize"></activity> <activity android:name="com.mased1.appflix.videoplay" android:configchanges="orientation|keyboardhidden|screensize"></activity> <activity android:name="com.mased1.appflix.aboutactivity"></activity> <activity android:name="com.example.play.openyoutubeplayeractivity" android:configchanges="orientation" android:label="@string/app_name" android:screenorientation="landscape" android:theme="@android:style/theme.black" > </activity> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <!-- activity required show ad overlays. --> <activity android:name="com.google.android.gms.ads.adactivity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize"/> <!-- youtube play activity --> <activity android:name="com.example.youtube.youtubeplay" android:configchanges="orientation|keyboardhidden|screensize"></activity> <!-- daily motion play --> <activity android:name="com.example.dailymotion.dailymotionplay" android:configchanges="keyboardhidden|orientation|screensize" android:theme="@android:style/theme.black.notitlebar"></activity> <!-- vimeo play activity --> <activity android:name="com.example.vimeo.vimeo" android:configchanges="orientation|keyboardhidden|screensize" android:theme="@android:style/theme.black.notitlebar"></activity> </application> </manifest>
the console log
05-14 01:33:01.338: d/dalvikvm(560): gc_for_alloc freed 156k, 2% free 14264k/14535k, paused 161ms 05-14 01:33:01.558: d/dalvikvm(560): gc_for_alloc freed 29k, 2% free 14379k/14663k, paused 75ms 05-14 01:33:01.598: i/dalvikvm-heap(560): grow heap (frag case) 15.940mb 1920016-byte allocation 05-14 01:33:01.748: d/dalvikvm(560): gc_concurrent freed 1k, 2% free 16252k/16583k, paused 9ms+6ms 05-14 01:33:02.088: d/dalvikvm(560): gc_for_alloc freed 0k, 2% free 16253k/16583k, paused 75ms 05-14 01:33:02.228: i/dalvikvm-heap(560): grow heap (frag case) 23.263mb 7680016-byte allocation 05-14 01:33:02.348: d/dalvikvm(560): gc_concurrent freed 0k, 2% free 23753k/24135k, paused 5ms+5ms 05-14 01:33:03.038: d/gralloc_goldfish(560): emulator without gpu emulation detected. 05-14 01:33:05.218: w/googleplayservicesutil(560): google play services missing. 05-14 01:33:05.388: d/dalvikvm(560): dexopt: --- begin 'ads1355843816.jar' (bootstrap=0) --- 05-14 01:33:05.558: d/dalvikvm(560): dexopt: --- end 'ads1355843816.jar' (success) --- 05-14 01:33:05.558: d/dalvikvm(560): dex prep '/data/data/com.mased1.appflix/cache/ads1355843816.jar': unzip in 1ms, rewrite 170ms 05-14 01:33:05.698: i/ads(560): use adrequest.builder.addtestdevice("b3eeabb8ee11c2be770b684d95219ecb") test ads on device. 05-14 01:33:05.718: i/ads(560): starting ad request. 05-14 01:33:05.978: w/googleplayservicesutil(560): google play services missing. 05-14 01:33:05.978: i/ads(560): use adrequest.builder.addtestdevice("b3eeabb8ee11c2be770b684d95219ecb") test ads on device. 05-14 01:33:05.988: i/ads(560): starting ad request. 05-14 01:33:15.378: e/chromium(560): external/chromium/net/disk_cache/backend_impl.cc:1097: [0514/013315:error:backend_impl.cc(1097)] critical error found -8 05-14 01:33:15.588: w/chromium(560): external/chromium/net/disk_cache/storage_block-inl.h:119: [0514/013315:warning:storage_block-inl.h(119)] failed data load. 05-14 01:33:15.858: d/chromium(560): unknown chromium error: -401 05-14 01:33:16.499: e/ads(560): js: uncaught referenceerror: afma_buildadurl not defined (http://googleads.g.doubleclick.net/:1) 05-14 01:33:16.499: e/web console(560): uncaught referenceerror: afma_buildadurl not defined @ http://googleads.g.doubleclick.net/:1 05-14 01:33:16.839: e/ads(560): js: uncaught referenceerror: afma_buildadurl not defined (http://googleads.g.doubleclick.net/:1) 05-14 01:33:16.839: e/web console(560): uncaught referenceerror: afma_buildadurl not defined @ http://googleads.g.doubleclick.net/:1 05-14 01:34:10.249: w/ads(560): timed out waiting ad response. 05-14 01:34:10.249: w/ads(560): ad request service interrupted. 05-14 01:34:10.258: i/ads(560): scheduling ad refresh 60000 milliseconds now. 05-14 01:34:10.258: w/ads(560): failed load ad: 2 05-14 01:34:10.369: w/ads(560): timed out waiting ad response. 05-14 01:34:10.369: w/ads(560): ad request service interrupted. 05-14 01:34:10.369: w/ads(560): failed load ad: 2 05-14 01:35:10.259: i/ads(560): starting ad request. 05-14 01:35:10.759: d/dalvikvm(560): gc_concurrent freed 10577k, 42% free 15156k/25863k, paused 7ms+17ms 05-14 01:35:10.759: d/webviewglue(560): nativedestroy view: 0x2b3810 05-14 01:35:10.899: d/webviewglue(560): nativedestroy view: 0x2c19f0 05-14 01:35:10.969: d/webviewglue(560): nativedestroy view: 0x2d8578 05-14 01:35:10.979: d/webviewglue(560): nativedestroy view: 0x319930 05-14 01:35:15.708: w/ads(560): no gmsg handler found gmsg: gmsg://mobileads.google.com/jsloaded?google.afma.notify_dt=1431560115704 05-14 01:35:17.188: i/ads(560): no fill ad server. 05-14 01:35:17.198: w/ads(560): failed load ad: 3
the exception caused in device because donĀ“t have google play services
installed necessary ads:
google play services missing. use adrequest.builder.addtestdevice("b3eeabb8ee11c2be770b684d95219ecb") test ads on device.
Comments
Post a Comment