1.给Manifest的四大组件配置属性"exported",如果有</intent-filter/>标签,需要配置成true,其他默认false。如果没有将会抛出异常。
Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters are present
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:n