Android Studio编译没问题,但在虚拟机上调试出现“Error running second Activity: The activity must be exported or contain an intent-filter

笔者运行环境:MacOs Catalina ; Android Studio

Error running second Activity: The activity must be exported or contain an intent-filte
经查阅资料和实践只需在AndroidManifest.xml 中,所想要运行的activity里加上
android:exported=“true”,即可解决。
Error running second Activity: The activity must be exported or contain an intent-filte

相关文章: