我正在我的完美工作的Android应用程序中集成admob.我设法让我的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>
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用android,我已经安装了android.com上解释的一切(jdk,eclipse,sdk,adt).我创建了一部手机(2.2).我创建了一个hi,world app.当我尝试调试或运行应用程序作为Android程序时,它不会启动.模拟器启动,我可以浏览手机,但应用程序无法启动.
Logcat显示:
[2011-10-27 15:01:42 - hiAndroid] ------------------------------
[2011-10-27 15:01:42 - hiAndroid] Android发布!
[2011-10-27 15:01:42 - hiAndroid] adb正常运行.
[2011-10-27 15:01:42 - hiAndroid]执行org.example.hi.Hi活动启动
[2011-10-27 15:01:42 - hiAndroid]自动目标模式:推出兼容AVD'Android2.2'的新模拟器
[2011-10-27 15:01:42 - hiAndroid]推出虚拟设备'Android2.2'的新模拟器
我已经尝试在运行winXP 32位的虚拟机中安装相同的程序(我使用的是win7 64)并且在这台机器上一切似乎都在运行任何想法?