废话不多说,直接说我遇到的问题吧。报错如下: 这种问题解决方法如下: 设置路径为:File ——> Project Structure... ——> app 将Compile sdk Version 和 Buid Tools Version的版本号调为一致就OK啦!