1.Arouter已经一年没有更新了。也没有适配android X
为了使用,引用了第三方的库。
引入自动注册插件。主要是针对Gradle 7.0以上配置。
根目录的配置文件如下
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.github.jadepeakpoet.ARouter:arouter-register:1.0.1"
}
}
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
}
apply plugin: 'com.alibaba.arouter'