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
Release: 2024-11-10 01:43:02
Original
780 people have browsed it

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" />
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template