[英]Application not Installed' Error on Android 2.3.4
I have a program working in the Android Emulator. 我有一个在Android模拟器中工作的程序。 Every now and again I have been creating a .apk
and exporting it to my SonyEricsson Xperia active to test. 我一直在创建一个.apk
并将其导出到我的SonyEricsson Xperia active以进行测试。 I have face the error Applicton not install. 我面临错误Applicton无法安装。
I have tried rebooting the phone & removing the existing .apk,
does not fix fault 我尝试重新启动手机并删除现有的.apk,
但没有修复故障
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.note"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".NoteActivity"
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=".NoteActivity"></activity>
<activity android:name=".NoteActivity1"></activity>
<activity android:name=".NoteActivity2"></activity>
</application>
</manifest>
Many thanks 非常感谢
Remove this code: 删除此代码:
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
All of these attributes are true
by default anyway. 无论如何,默认情况下所有这些属性都是true
。
Also, take out this code: 另外,请删除此代码:
<activity android:name=".NoteActivity"></activity>
You have already declared an Activity
in your manifest with the exact same name. 您已使用完全相同的名称在清单中声明了一个Activity
。 I believe this duplicate tag is the reason why your application is crashing. 我相信这个重复的标记是您的应用程序崩溃的原因。
Remove this 删除它
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"/>
and also remove this 并删除此
<activity android:name=".NoteActivity"></activity>
<activity android:name=".NoteActivity1"></activity>
<activity android:name=".NoteActivity2"></activity>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.