【发布时间】:2014-11-20 04:03:13
【问题描述】:
我正在将 admob 集成到我完美运行的 android 应用程序中。 我设法在我的 Jelly Bean (4.1.2) 手机上运行,但应用程序在我的蜂窝平板电脑 (3.2) 上崩溃并显示消息
java.lang.NoClassDefFoundError: android.net.http.HttpResponseCache
不确定是否相关,但在我的清单文件中我设置了 minSdkVersion="9"
我似乎无法在 Google 上找到相关问题。 有没有人见过这个?可能是什么原因?
编辑:libs 文件夹中没有文件。一切都是使用 gradle 设置的。
我的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="foo.bar.results"
android:versionCode="6"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
<application
android:icon="@drawable/bar"
android:label="@string/app_name" >
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name=".bar"
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.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
【问题讨论】:
-
有一个使用lib项目和admob jar文件
-
这似乎是从今天开始的,对很多人来说......
-
我今天注意到我的测试应用程序出现了同样的问题。 Admob 在 loadAd 时崩溃。我刚刚添加了一个 try and catch NoClassDefFoundError 来忽略 3.2 设备的这个问题作为临时解决方案。
-
admob 在这么短的时间内又出现了另一个问题。大约一个月前的另一个花了他们几周的时间来修复。现在这个。由于没有向 3.2 位用户显示广告,因此这让我们付出了代价/这也让谷歌付出了金钱,希望他们能尽快修复它。同时我只能希望try catch可以
标签: android admob forceclose