简体   繁体   English

应用安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

[英]App installation error : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

When I try to run my flutter app on my phone, I get this error当我尝试在手机上运行 flutter 应用程序时,出现此错误

Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\kavis\OneDrive\Desktop\New 
folder\care_receiver_app\ss_carereceiver_app\build\app\outputs\flutter-apk\app.apk: 
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: 
/data/app/vmdl378681921.tmp/base.apk (at Binary XML file line #26): 
com.owaslo.sukithasagayo.carereceiver.mainActivity: Targeting S+ (version 31 and above) 
requires that an explicit value for android:exported be defined when intent filters are 
present]
Error launching application on Pixel 6.

I read many other questions about it here but I didn't find a solution so far, could anyone have a look at my manifest and tell me what I did wrong?我在这里阅读了许多其他有关它的问题,但到目前为止我还没有找到解决方案,有人可以看看我的清单并告诉我我做错了什么吗?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.owaslo.sukithasagayo.carereceiver">
<application
    android:label="Sukitha Sagayo"
    android:icon="@mipmap/ic_launcher">
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <meta-data
          android:name="io.flutter.embedding.android.NormalTheme"
          android:resource="@style/NormalTheme"
          />
        <meta-data
          android:name="io.flutter.embedding.android.SplashScreenDrawable"
          android:resource="@drawable/launch_background"
          />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
</application>
</manifest>

Below is a screenshot of the file structure下面是文件结构的截图在此处输入图像描述 Thank you in advance:)先感谢您:)

Under this line android:name=".MainActivity" , add another line like this在这一行android:name=".MainActivity"下,像这样添加另一行

android:exported="true"

Happy Coding!快乐编码!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序安装失败错误[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] - Application Installation failed error [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] 安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED-仍未修复 - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - still not fixed 安装错误:tamoghna的INSTALL_PARSE_FAILED_MANIFEST_MALFORMED… - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED…by tamoghna 安装错误:包含INSTALL_PARSE_FAILED_MANIFEST_MALFORMED代码 - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED code included 安装错误:Android 中的 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in Android 安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED? - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED? 安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED如何解决? - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED how to fix? Android安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Android Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 在模拟器上部署应用失败,并显示错误“安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED” - Deploying app on emulator failed with error “Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM