https://kotlinlang.org logo
#gradle
Title
# gradle
h

hisham bin awiad

03/05/2023, 9:33 AM
any one can help me with this issue : i updated all activities on manifest to android:exported=true but is still not fixed
Copy code
Installation failed due to: 'Failed to commit install session 169461024 with command package install-commit 169461024. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl169461024.tmp/base.apk (at Binary XML file line #139): com.common.broadcast.NetworkBroadCastReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
s

s3rius

03/05/2023, 10:27 AM
This is more of an android-issue, not gradle. But you have to set
exported
not only for activities. The error message tells you that
com.common.broadcast.NetworkBroadCastReceiver
doesn't have the attribute. Do you define such a receiver in your manifest? Then add
exported
to it as well. If you don't define such a receiver, it is probably part of a library that you include in your project. In this case, you can look at the Merged Manifest (which also has all the data from the included libraries) and try to find where the broadcast receiver is coming from:
h

hisham bin awiad

03/05/2023, 1:19 PM
yes @s3rius Thx … it’s like you say.. i resolve this by add missing
NetworkBroadCastReceiver
as override
Thx 🌹
8 Views