Android Studio报错A launchable activity must be exported as of Android 12, which also makes it available to other apps.的原因 报错原因:在Android 12,可启动活动必须可以被其他活动导出。 因为下图设置了该活动为启动活动: 只要按照提示,修改为true即可