小编saa*_*ban的帖子

当我将手机更新到 Android 12 时,安装失败。无法安装应用程序:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

自从我将手机更新到 Android 12 以来,我一直在完美地处理我的项目,不幸的是,当我在手机上运行该项目时,会出现此错误:

安装没有成功。无法安装应用程序:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

apk 列表:[0] 'C:\Users\Microsoft\AndroidStudioProjects\YmmyServer\app\build\outputs\apk\debug\app-debug.apk' 安装失败,原因是:'null' 重试

这是我的 build.gradle(项目) 文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.google.gms:google-services:4.3.10'
        classpath 'com.android.tools.build:gradle:4.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
} …
Run Code Online (Sandbox Code Playgroud)

java android manifest gradle android-studio

8
推荐指数
2
解决办法
9480
查看次数

标签 统计

android ×1

android-studio ×1

gradle ×1

java ×1

manifest ×1