Android 12: don’t forget to set android:exported on your activities, services, and receivers

Android 12: don’t forget to set android:exported on your activities, services, and receivers cover

TL;DR

If you’re targeting Android 12, you need to set android:exported on each activity, service, and receiver on your AndroidManifest.xml file.

This recently happened to me while updating one of my apps to Android 12 (API 31). As I’d incremented the SDK version and hit build, the…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store