简体   繁体   中英

android:exported needs to be explicitly specified for <service>. Apps targeting Android 12

Tôi đang dặp rắc rối với nó

android:exported needs to be explicitly specified for. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. datlichkhambenh.app main manifest (this file)

You must add exported attribute to your activities and services (entry points) of your app on AndroidManifest. Mostly it can be false, I used true just for notification service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM