After upgrading Android Studio 3.0, it is found that the module will not automatically generate aar. So you can only add code generation manually.
Solution: After cd to the module that needs to generate aar, gradle build can
Or make an alias, you can gradle uilib anywhere
task uilib {//Just give an alias to facilitate build } uilib.dependsOn(build)