转载自:http://tools.android.com/tech-docs/new-build-system/gradle-experimental Introduction The new experimental plugin is based on Gradle’s new component model mechanism, while allows significant reduction in configuration time. It also includes NDK in
先建立一个lib工程,然后build出aar. 接着把aar放入要引入它的工程module的libs中. 在project的build.gradle中: repositories { flatDir { dirs 'libs' //this way we can find the .aar file in libs folder } } 在app中的build.gradle中: dependencies { compile(name:'你的aar的名字', ext:'aar') } 参考自: h