4 依赖,Android库工程以及多工程设置

    要配置依赖一个外部库 jar 包,你可以在 compile 配置里添加一个依赖。

    compile 配置用来编译 main application,它里面的一切都会被添加到编译的 classpath 中,并且也会被打包到最终的 APK 中。

    • compile: main application
    • debugCompile: debug Build Type

    因为要构建生成一个 APK,必然会有相关联的 Build Type ,APK默认配置了两个(或者更多)编译配置:compile和\Compile。
    创建一个新的 Build Type 的时候会自动创建一个基于它名字的编译配置。