在将我的项目从Ubuntu转移到Mac时,我将~/.gradle/cache依赖项和jars从Ubuntu上的~/.gradle/caches/artifacts复制到Mac上的~/.gradle/caches/artifacts,以避免gradle再次下载依赖项。令我惊讶的是,运行gradle idea (我们正在使用Intellij )清空了的~
我被要求添加一些依赖项。我知道应该在build.gradle上添加它们,但是在依赖项部分是这样写的: classpath 'com.android.tools.build:gradle:1.3.0Do not place your application dependencies here; they belong
// in the individual module build.gradle