四大组件出现:android The activity must be exported or contain an intent-filter

原因是因为需要添加属性:android:exported="true",从而使得此组件允许其他的应用调用

组件如果包含有intent-filter 默认值为true,我们无需设置; 如果不包含intent-filter,此时android:exported="false"默认值为false,所以需要设置为true。

猜你喜欢

转载自blog.csdn.net/fuweng886/article/details/79193833