Upgrading our project to Android SDK 31. I have a...
# android-studio
d
Upgrading our project to Android SDK 31. I have a problem with the developer that generated this error:
Copy code
/redactedProjectPath/build/intermediates/tmp/manifest/test/debug/tempFile1ProcessTestManifest581782015275268609.xml Error:
	android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See <https://developer.android.com/guide/topics/manifest/activity-element#exported> for details.
...without logging the name of the activity that caused the clash 😡. I mean really, help a dev out. I've lost over a day trying to track this down. Yes I know about the new rules to add explicit
exported
attributes, and overriding it for dependencies that don't have it. But there's something, something that's failing in the Unit Test manifest, but I can't see it in the merged manifests in the IDE or
build
folder. The XML's listed above are ephemeral temp files and get removed before Gradle quits, so I can't see them. Any ideas?
m
If you sure you handle your all activities by adding exported, then You need to check merged manifest it can be case that one of the library you use didn’t add that flag, so you will need to explicitly define and override that activity in your manifest
☝️ 1