在我的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>就是不行!!我能做什么?请帮帮我,我已经被困在这上面好几天了。
发布于 2013-11-13 06:54:42
确保在应用程序管理器设置中签入了“从未知来源安装”,如果这无助于尝试以下操作:
https://stackoverflow.com/questions/19944580
复制相似问题