1.新建一个As项目
2.在新建一个Module
3.在工具类Model创建一个类和方法
4.在需要引用的项目添加model
5.在主程序添加引用工具类model
6.注意的是可能两个sdk版本不一致导致报错。
7.主程序使用model的方法
test test=new test(); test.Printing(MainActivity.this);
1.新建一个As项目
2.在新建一个Module
3.在工具类Model创建一个类和方法
4.在需要引用的项目添加model
5.在主程序添加引用工具类model
6.注意的是可能两个sdk版本不一致导致报错。
7.主程序使用model的方法
test test=new test(); test.Printing(MainActivity.this);