0
我的admob實施有問題,希望你們能幫我一把。Admob測試問題
我似乎無法找到日誌中的問題,我很迷茫。我的問題是 - 我做了什麼錯誤,因爲廣告不會加載。該應用加載正常,但廣告不顯示 - 爲什麼?這是我的logcat:
10-31 22:05:31.191: D/AbsListView(11349): Get MotionRecognitionManager
10-31 22:05:31.382: D/dalvikvm(11349): DexOpt: --- BEGIN 'ads-16831983.jar' (bootstrap=0) ---
10-31 22:05:31.432: I/Ads(11349): Starting ad request.
10-31 22:05:31.552: D/libEGL(11349): loaded /system/lib/egl/libEGL_adreno200.so
10-31 22:05:31.552: D/libEGL(11349): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
10-31 22:05:31.562: D/libEGL(11349): loaded /system/lib/egl/libGLESv2_adreno200.so
10-31 22:05:31.562: I/Adreno200-EGL(11349): <qeglDrvAPI_eglInitialize:265>: EGL 1.4 QUALCOMM build: AYELDER_AU_LINUX_ANDROID_JB_2.5.5.04.02.02.092.023+PATCH[ES]_msm8960_JB_2.5.5_CL3556704_release_ENGG (CL3556704)
10-31 22:05:31.562: I/Adreno200-EGL(11349): Build Date: 05/17/13 Fri
10-31 22:05:31.562: I/Adreno200-EGL(11349): Local Branch:
10-31 22:05:31.562: I/Adreno200-EGL(11349): Remote Branch: quic/jb_2.5.5
10-31 22:05:31.562: I/Adreno200-EGL(11349): Local Patches: 34c9e193f12610d3e68dabd6198d2c4bfbc66974 RB: Update the master timestamp of the hw_image in rb_texture_update_aliased
10-31 22:05:31.562: I/Adreno200-EGL(11349): Reconstruct Branch: AU_LINUX_ANDROID_JB_2.5.5.04.02.02.092.023 + 01d3c78 + e6f0547 + LOCAL_PATCH[ES]
10-31 22:05:31.602: D/OpenGLRenderer(11349): Enabling debug mode 0
10-31 22:05:31.742: D/dalvikvm(11349): DexOpt: --- END 'ads-16831983.jar' (success) ---
10-31 22:05:31.742: D/dalvikvm(11349): DEX prep '/data/data/com.example.going_android/cache/ads-16831983.jar': unzip in 0ms, rewrite 362ms
10-31 22:05:32.313: W/Ads(11349): There was a problem getting an ad response. ErrorCode: 1
10-31 22:05:32.323: I/dalvikvm(11349): Could not find method android.webkit.WebView.evaluateJavascript, referenced from method com.google.android.gms.ads.internal.o.a.evaluateJavascript
10-31 22:05:32.323: W/dalvikvm(11349): VFY: unable to resolve virtual method 3227: Landroid/webkit/WebView;.evaluateJavascript (Ljava/lang/String;Landroid/webkit/ValueCallback;)V
10-31 22:05:32.323: D/dalvikvm(11349): VFY: replacing opcode 0x6f at 0x0016
10-31 22:05:32.363: I/webclipboard(11349): clipservice: [email protected]
10-31 22:05:32.393: W/Ads(11349): Failed to load ad: 1
10-31 22:05:32.403: D/WebView(11349): onSizeChanged - w:480 h:75
10-31 22:05:32.443: V/webkit(11349): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {418da9a8}
下面是從XML的相關代碼:
<com.google.android.gms.ads.AdView android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="MY UNIT ID HERE (hidden)"/>
從我的.java文件中的相關代碼:
AdView adView = (AdView)rootView.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("MY DEVICE ID HERE (hidden)").build();
adView.loadAd(adRequest);
我希望你們能幫助我在這裏!