運行我的顫振應用程式時出現此錯誤。該應用程式在 chrome 上啟動,但不會在模擬器或真正的移動設備上啟動
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install
C:\Users\HP\Desktop\OWASLO\care_giver_app\build\app\outputs\flutter-apk\app.apk:
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during
installPackageLI: /data/app/vmdl1352177004.tmp/base.apk (at Binary XML file line #53):
com.owaslo.sukithasagayo.caregiver.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.
下面是我的 AndroidManifest 檔案。我在 gradle 檔案中也啟用了 multidex。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.owaslo.sukithasagayo.caregiver">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="Sukitha Sagayo Member"
android:icon="@mipmap/launcher_icon">
<provider
android:name="vn.hunghd.flutterdownloader.DownloadedFileProvider"
android:authorities="${applicationId}.flutter_downloader.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
<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>
下面的鏈接包含我的 gradle 檔案 gradle 檔案
請幫忙 !!!
uj5u.com熱心網友回復:
將此屬性添加到需要為活動撰寫此屬性的位置,并且您的設備具有 android api 級別<activity> , 即 android - 12android 1231
android:exported="true"
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/418212.html
標籤:
