Easy fix for apps targeting Android 12
Author: acrespoCreated Mar 11, 2022Updated Jun 5, 2026
Library breaks build when targeting Android 12
Please add
android:exported="false" to "com.github.moduth.blockcanary.ui.DisplayActivity"
Or recommend users to add
<activity android:name="com.github.moduth.blockcanary.ui.DisplayActivity"
android:exported="false" />to their AndroidManifest.xml
Source: markzhai/AndroidPerformanceMonitor