@weijiz 我的程序也跑通了,是一个设置出了问题,修改过程是: 打开IDE,进入File—>Setting—>Build,Execution,Deployment—>Instant Run 将将enable instant run to hot swap code/resource changes on deploy勾上!