Skip to content

Easy fix for apps targeting Android 12 #144

Open

Description

@acrespo

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

See: https://cafonsomota.medium.com/android-12-dont-forget-to-set-android-exported-on-your-activities-services-and-receivers-3bee33f37beb

Activity

  1. ideav5 commented on Mar 11, 2022

    @ideav5
  2. uidq1290 commented on Mar 11, 2022

    @uidq1290
  3. uidq1290 commented on Jun 5, 2026

    @uidq1290
  4. ideav5 commented on Jun 5, 2026

    @ideav5
  5. zeniatison commented on Nov 4, 2026

    @zeniatison

    Applying android:exported="false" to DisplayActivity in the library manifest is necessary for Gradle builds to resolve the Android 12 intent filter manifest merger error.

  6. ideav5 commented on Nov 4, 2026

    @ideav5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions