将我开发的应用程序安装到我的 android 手机时出现此错误
[2013-11-13 11:06:11 - Test] ------------------------------
[2013-11-13 11:06:11 - Test] Android Launch!
[2013-11-13 11:06:11 - Test] adb is running normally.
[2013-11-13 11:06:11 - Test] Performing com.example.test.MainActivity activity launch
[2013-11-13 11:06:13 - Test] Uploading Test.apk onto device '087A4C7CF209'
[2013-11-13 11:06:13 - Test] Installing Test.apk...
[2013-11-13 11:08:15 - Test] Failed to install Test.apk on device '087A4C7CF209!
[2013-11-13 11:08:15 - Test] (null)
[2013-11-13 11:08:15 - Test] Launch canceled!
我确定调试模式已打开,我试图取消并重置它,没有运气。该设备可以被检测到,所以我确信在这方面它很好
$adb devices
List of devices attached
087A4C7CF209 device
如果我从命令行安装它,它会挂在那里并且永远不会成功。
$ adb install ~/workspace/Test/bin/Test.apk
3096 KB/s (255979 bytes in 0.080s)
pkg: /data/local/tmp/Test.apk
更新
清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.test.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
它只是行不通!我能做些什么?请帮助我已经坚持了好几天了。