一般创建一个android项目后回出现两个gradle: build.gradle(Project):用来配置整个工程的 build.gradle(app):一个是用来配置app的 对compile和classpath区别的解释: I’m going to guess that you’re referencing compile and classpath within the dependencies {} block. If that is so, those are dependency