Create a project
File->new->new module->android Library
![](https://connie.hk/wp-content/uploads/2019/07/1562552903704.jpg)
![](https://connie.hk/wp-content/uploads/2019/07/1562552919727.jpg)
![](https://connie.hk/wp-content/uploads/2019/07/1562552936691.jpg)
![](https://connie.hk/wp-content/uploads/2019/07/1562552966006.jpg)
create a class , and modify string.xml for testing
![](https://connie.hk/wp-content/uploads/2019/07/1562552990284.jpg)
![](https://connie.hk/wp-content/uploads/2019/07/1562552997933.jpg)
之後打開gradle
![](https://connie.hk/wp-content/uploads/2019/07/1562553009241.jpg)
assemble then it will create 2 aar
![](https://connie.hk/wp-content/uploads/2019/07/1562553125289.jpg)
Create a new project>change to project view, insert the aar file to app>libs folder
![](https://connie.hk/wp-content/uploads/2019/07/1562553179867.jpg)
and change the gradle(apps)
![](https://connie.hk/wp-content/uploads/2019/07/1562553319043.jpg)
try to execute the apps
![](https://connie.hk/wp-content/uploads/2019/07/1562553217239.jpg)
Comment feed