【发布时间】:2012-05-29 18:56:18
【问题描述】:
我有一个 Android 应用程序,它可以在使用 Android 2.3.3 的 AVD 上完美运行,但它无法安装在任何可供我测试的设备上(运行 Android 2.3.3 的索尼爱立信 XPeria,运行 Android 2.3.7 的 LG Optimus和三星 Galaxy Tab Android 4.0.3)。错误是“未安装应用程序”。据我所知,它可能与应用程序的不正确清单文件有关,所以如果可能有帮助,我的AndroidManifest.xml 如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hohlocola"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<uses-permission
android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".HohloColaActivity"
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>
我导出我的应用程序未签名。
提前致谢!
【问题讨论】:
-
清单文件中并没有什么特别之处。但是,您可以尝试显式声明
android:targetSdkVersion属性。此外,请确保您的测试手机启用了适当的开发人员设置;例如允许安装非市场应用、USB调试等。