我遇到了这个错误,无法让我在任何设备上安装 apk:
安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
这是我的清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example"
android:versionCode="2"
android:versionName="1.0.1" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar" >
<activity
android:name="com.example.activities.MainTabs"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.apphance.android.LAUNCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.activities.TourInfo"
android:label="@string/title_activity_tour_info" >
</activity>
<activity
android:name="com.example.TestActivity"
android:label="@string/title_activity_test" >
</activity>
<activity
android:name="com.example.activities.DiscoverTab"
android:label="@string/title_activity_discover_tab_group" >
</activity>
<activity
android:name="com.example.activities.MyToursTab"
android:label="@string/title_activity_my_tours_tab_group" >
</activity>
<activity
android:name="com.example.activities.SettingsTab"
android:label="@string/title_activity_settings_tab_group" >
</activity>
<activity
android:name="com.example.activities.Discover"
android:label="@string/title_activity_discover" >
</activity>
<activity
android:name="com.example.activities.MyTours"
android:label="@string/title_activity_my_tours" >
</activity>
<activity
android:name="com.example.activities.Settings"
android:label="@string/title_activity_settings" >
</activity>
<activity
android:name="com.example.activities.Topics"
android:label="@string/title_activity_topics" >
</activity>
<activity
android:name="com.example.activities.Places"
android:label="@string/title_activity_places" >
</activity>
<activity-alias
android:name="com.example.ApphanceLauncherActivity"
android:targetActivity="com.apphance.android.LauncherActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" >
</action>
<category android:name="android.intent.category.LAUNCHER" >
</category>
</intent-filter>
</activity-alias>
<uses-library android:name="com.google.android.maps" />
<activity
android:name="com.apphance.android.LauncherActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
</activity>
<activity
android:name="com.apphance.android.ui.LoginActivity"
android:launchMode="singleInstance" >
</activity>
<activity
android:name="com.apphance.android.ui.TestCycleActivity"
android:launchMode="singleInstance" >
</activity>
<activity
android:name="com.apphance.android.ui.ProblemActivity"
android:configChanges="orientation"
android:launchMode="singleInstance" >
</activity>
</application>
<instrumentation
android:name="com.apphance.android.ApphanceInstrumentation"
android:targetPackage="com.example" >
</instrumentation>
</manifest>
PS:我使用 Apphance API 已经有一段时间了,它从来没有给我带来任何问题。
编辑:我错误地运行了一个具有相同包名的项目,这导致我在第二个项目中出现了一些错误,所以我改变了它。它与这个项目中的错误有什么关系吗?
请问有什么想法吗?