可以升级AS IDE的版本。 或者在项目的gradle.properties配置文件中加入以下这句: gradle.properties中: android.injected.build.model.only.versioned = 3