1、直接在Project/build.gradle中定义和引用: // Top-level build file where you can add configuration options common to all sub-projects/modules.