Using the custom gradle plugin to autoload the routing table
apply plugin: 'com.alibaba.arouter'
buildscript { repositories { jcenter() }
dependencies { // Replace with the latest version classpath "com.alibaba:arouter-register:?" } }
Optional, use the registration plugin provided by the ARouter to automatically load the routing table(power by AutoRegister). By default, the ARouter will scanned the dex files . Performing an auto-registration via the gradle plugin can shorten the initialization time , it should be noted that the plugin must be used with api above 1.3.0!