setSupportActionBar(toolbar) 执行这句话,就crash崩掉了。 解决: AndroidManifest.xml/<activity + android:theme="Theme.AppCompat.Light.NoActionBar" 这样就可以了。 参考: https://blog.csdn.net/potato_me/article/details/110821557 道法自然