0

I searched for an answer to my problem, but I couldn't find a solution that worked.

I just created my first android app and when I try to install it from the app store, I get a message saying "Package file has a bad manifest." I was hoping someone could point out what I did wrong and maybe even give a simple explanation for why it isn't working.

By the way, if I install the apk directly on my phone it does work, it just doesn't work from the play store.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.coffeeBrewing.quadratic"
    android:versionCode="3"
    android:versionName="3" android:installLocation="auto">

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="18" />
    <uses-permission android:name="android.permission.SET_DEBUG_APP"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" android:logo="@drawable/icon" >
        <activity
            android:name="com.example.quadratric.MainActivity"
            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>

</manifest>

Here is the link to the app.

Thanks to anyone that helps, I appreciate any and all tips.

4

2 回答 2

0

我曾经遇到过同样的问题。我所做的是重新启动我的 Eclipse,然后退出 .apk 并将新版本上传到 Play Market。

我还在您的代码中注意到您的 Activity 具有不同的包名称。

尝试改变这一点

<activity
    android:name="com.example.quadratric.MainActivity"
    android:label="@string/app_name" >
<intent-filter>

对此

<activity
    android:name="com.coffeeBrewing.quadratic.MainActivity"
    android:label="@string/app_name" >
<intent-filter>
于 2013-11-12T19:06:49.517 回答
0

卸载刚下载的那个,重新下载。我认为文件损坏了,因为你的manisfest.xml看起来不错

于 2013-11-12T18:42:59.090 回答