签名apk不能在我的设备上运行

时间:2012-10-10 13:05:26

标签: android keystore sign

我已经在清单中使用导出签名的apk向导签署了我的.apk,我正在尝试将其部署在我的设备上,但即使在签名过程中没有问题,当我将其安装在我的设备上时它也无法正常工作它开始安装的设备,它停止显示我(应用程序未安装)。

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nazzelha.elfagr"
android:installLocation="auto"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="16" />
<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Mobclix Required Permissions " -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" >
</uses-permission>
<!-- Mobclix Optional Permissions -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
</uses-permission>
<application
    android:allowTaskReparenting="true"
    android:debuggable="false"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:permission="android.permission.ACCESS_COARSE_LOCATION"
    android:theme="@android:style/Theme.Light.NoTitleBar" >
    <activity
        android:name=".FeedsActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".Activity1"
        android:screenOrientation="portrait" />
    <activity
        android:name=".Activity2"
        android:screenOrientation="portrait" />
    <activity
        android:name=".Activity3"
        android:screenOrientation="portrait" />
    <activity
        android:name=".InfoActivity"
        android:screenOrientation="portrait" />
    <!-- Twitter -->
    <activity
        android:name="com.ecs.android.sample.twitter.PrepareRequestTokenActivity"
        android:launchMode="singleTask"
        android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data
                android:host="callback"
                android:scheme="x-oauthflow-twitter" />
        </intent-filter>
    </activity>
    <!-- Mobclix and AdMob Required Parameter -->
    <meta-data
        android:name="com.mobclix.APPLICATION_ID"
        android:value="ID" />
    <meta-data
        android:name="ADMOB_PUBLISHER_ID"
        android:value="ID" />
    <activity
        android:name="com.google.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode"
        android:screenOrientation="portrait" />
    <activity
        android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
        android:screenOrientation="portrait" />
</application>

1 个答案:

答案 0 :(得分:0)

您需要首先卸载手机上的应用,然后才能从.apk

安装

现在我知道你得到的错误,问题有点奇怪.. 我发现了类似的问题here。根据最后的评论,他的问题是androidmanifest.xml上的一个坏线。也许你应该检查你的清单,看看是否一切正常。