r/android_devs • 🛡️ • Feb 21 '21

Coding Random Musings on the Android 12 Developer Preview 1

https://commonsware.com/blog/2021/02/21/random-musings-android-12-developer-preview-1.html
11 Upvotes

2 comments sorted by

4

u/anemomylos 🛡️ Feb 21 '21

When installing an app that has a targetSdkVersion of 'S' from Android Studio, developers might see the following error:

Installation did not succeed. The application could not be installed: INSTALL_FAILED_VERIFICATION_FAILURE List of apks: [0] '.../build/outputs/apk/debug/app-debug.apk' Installation failed due to: 'null' 

The likely cause is that one or more of the app's activities, services, or broadcast receivers includes intent-filters, but does not explicitly set a value for android:exported. Android 12 requires setting an explicit value for this attribute on all <activity>, <service>, and <receiver> components that also have an <intent-filter> defined. For more information, see Safer exporting of components.