Home >Java >javaTutorial >How to Fix the 'android:exported' Error in Android 12?

How to Fix the 'android:exported' Error in Android 12?

Patricia Arquette
Patricia ArquetteOriginal
2024-11-10 01:43:02794browse

How to Fix the

Android 12 requires that you explicitly specify an explicit value for android:exported when the corresponding component has an intent filter defined. To fix the issue, you need to set the android:exported attribute to "false" for all activities in your manifest file.

Here's an example of how to set the android:exported attribute to "false" for an activity:

<activity
    android:name=".ui.GroupSearchActivity"
    android:exported="false" />

Once you have set the android:exported attribute to "false" for all activities in your manifest file, the error should disappear.

The above is the detailed content of How to Fix the 'android:exported' Error in Android 12?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn