0

我在我的 Android 应用程序项目中使用了 admob,它给了我大量的日志错误和警告。

布局:

<com.google.ads.AdView
    android:id="@+id/adView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"

    ads:adSize="BANNER"
    ads:adUnitId="..."
    ads:loadAdOnCreate="true"
    ads:testDevices="..." >
</com.google.ads.AdView>

我使用以下代码在我的 onCreate 中非常简单地初始化广告:

adView = (AdView) findViewById(R.id.adView);
AdRequest ar = new AdRequest();
ar.addTestDevice("my device id here");
adView.loadAd(ar);

我的日志被以下所有内容淹没:

03-29 21:24:08.010: V/chromium(10419): external/chromium/net/host_resolver_helper/host_resolver_helper.cc:66: [0329/212408:INFO:host_resolver_helper.cc(66)] DNSPreResolver::Init got hostprovider:0x00000000
03-29 21:24:08.010: V/chromium(10419): external/chromium/net/base/host_resolver_impl.cc:1510: [0329/212408:INFO:host_resolver_impl.cc(1510)] HostResolverImpl::SetPreresolver preresolver:0x51120230
03-29 21:24:08.010: D/(10419): dl error message Cannot load library: load_library[1118]: Library 'libtcpfinaggr.so' not found
03-29 21:24:08.010: D/Socket_Pool(10419): Failed to create TCP Fin Aggregation interface.
03-29 21:24:08.010: D/Socket_Pool(10419): netstack: CloseUnusedSockets is ON
03-29 21:24:08.010: D/Socket_Pool(10419): netstack: system net.statistics value: 0
03-29 21:24:08.010: D/Socket_Pool(10419): Failed to create TCP Fin Aggregation interface.
03-29 21:24:08.010: D/Socket_Pool(10419): netstack: CloseUnusedSockets is ON
03-29 21:24:08.010: D/Socket_Pool(10419): netstack: system net.statistics value: 0
03-29 21:24:08.015: D/(10419): external/chromium/net/http/http_getzip_factory.cc: Failed to construct GETzip manager, didn't find the library!
03-29 21:24:08.020: D/netstack(10419): netstack: Request Priority is ON
03-29 21:24:08.025: V/chromium(10419): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:52: [0329/212408:INFO:hostres_plugin_bridge.cc(52)] StatHubCreateHostResPlugin initializing...
03-29 21:24:08.025: V/chromium(10419): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:68: [0329/212408:INFO:hostres_plugin_bridge.cc(68)] netstack: Failed to open plugin:libdnshostprio.so
03-29 21:24:08.025: V/chromium(10419): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:73: [0329/212408:INFO:hostres_plugin_bridge.cc(73)] netstack: Failed to find symbols in plugin: libdnshostprio.so
03-29 21:24:08.025: E/chromium(10419): external/chromium/net/disk_cache/stat_hub.cc:216: [0329/212408:ERROR:stat_hub.cc(216)] StatHub::Init - App com.twinone.control isn't supported.
03-29 21:24:08.025: V/chromium(10419): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:73: [0329/212408:INFO:hostres_plugin_bridge.cc(73)] netstack: Failed to find symbols in plugin: libdnshostprio.so
03-29 21:24:08.025: E/chromium(10419): external/chromium/net/disk_cache/stat_hub.cc:216: [0329/212408:ERROR:stat_hub.cc(216)] StatHub::Init - App com.twinone.control isn't supported.

我有几个问题:

  • 当然:我做错了什么?
  • 为什么选择chromium,它与 AdMob 有什么关系?
  • 为什么有这么多日志?不能只有 1 个错误或堆栈跟踪吗?
  • 为什么抱怨找不到图书馆?

(顺便说一句,我尝试将 jar 链接GoogleAdMobAdsSdk-6.3.1.jar为引用库,但这不起作用,所以我直接将 jar 复制到 libs 文件夹中。)

广告显示正确(测试广告和真实广告),但大量日志让我很紧张。


编辑

也许与在 SGS2 上使用 CM10-nightly 有关?

4

1 回答 1

0

我已经在朋友的设备上对其进行了测试,它没有给出任何错误。我认为是 CyanogenMod。

于 2013-03-29T21:04:18.020 回答