安装失败并显示消息 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED。 (包装内无大写字母)

Installation failed with message INSTALL_PARSE_FAILED_MANIFEST_MALFORMED. (no capitals in package)

所以你可以看到包名中没有大写字母。以前,它表示用户未授予安装权限。有趣的是应用程序已经安装,我正在测试一些新代码。它要求卸载,我做到了,但仍然无法正常工作。我重新启动了我的设备(Redmi Note 3,最新的 OS 更新)然后它给出了这个错误。值得注意的是,这个应用程序之前也遇到过麻烦。设备有 API 23,我将 minSdkVersion 设置为 23,但在单击 运行 时,它继续显示 minSdkVersion 为 28。我将其设置为 21,然后 运行。将其设置回 23,这次没有问题。圣运行ge.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.nocapitals.www.nocapitals_hereeither">

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".SetReminder"/>
    <receiver android:name=".AlertReceiver" android:process="remote"/>
</application>

</manifest>

将进程名称更改为 :remote

我不完全确定为什么会这样,但根据 the docs,没有冒号的进程是全局的(由任何与您具有相同 UID 的应用程序共享),并且 MIUI 可能有阻止了它的工作。