0

我已经使用清单中的导出签名 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>

4

1 回答 1

0

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

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

于 2012-10-10T13:12:32.473 回答