例子: 1.root工程下新建CommomPlatom文件夹 2.将一个module拖进CommomPlatom文件夹 3.在setting.gradle中将原有的:moduleName为:extra:moduleName,编译一下,完成。 如图: