I can't debug my flutter app on sdk version 31 and above

Viewed 23

this is my manifest file

android:label="nojoum"
android:exported="true"
android:name="${applicationName}"
android:usesCleartextTraffic="true"

i use 'android exported = "true"'


this is activity lines

android:name="com.ryanheise.audioservice.AudioServiceActivity"
        android:exported="true"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"

and this is my error

adb: failed to install C:\Users\legion\Desktop\nojoum-application\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1404867606.tmp/base.apk (at Binary XML file line #79): com.ryanheise.audioservice.AudioService: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]

0 Answers
Related