如何在android studio建立module,然后实现不同module间的工程依赖

可以在android studio工程中new一个module,然后选Android library
这里写图片描述

把这个module命名为fesco-helper,然后在主module的build.gradle中的dependencies中写入:
compile project(‘:fresco-helper’)

然后sync gradle就可以在主工程引用module fesco-helper的内容了

猜你喜欢

转载自blog.csdn.net/baidu_nod/article/details/70770482