ARouter::There is no route match the path


ARouter:https://github.com/alibaba/ARouter
サービスを利用するとルートが見つからないというプロンプトが表示されますが、公式サイトのプロンプトに従ってルートが構成されています.
理由:構成に問題がある可能性があります.
モジュール化開発には各モジュールのbuildが必要である.gradleではすべて設定します
defaultConfig {
        ...

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [moduleName: project.getName()]
            }
        }

    }


dependencies {
    ...

    annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
    implementation project(':base')//base       

}

同時にbaseモジュールで
dependencies {
   ...
    compile ('com.alibaba:arouter-api:1.3.1'){ exclude group: 'com.android.support' }
//    implementation 'com.alibaba:arouter-api:1.3.1'

}

注意:arouter-apiをインポートすると、V 4パッケージのバージョンが一致しない可能性があります.次の異常が発生したため、マスクします.
Error:Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (25.2.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution

コンパイルに問題はありませんが、実行時に異常が発生する可能性があります.
com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/alibaba/android/arouter/routes/ARouter$$Group$$user;

解決方法:https://blog.csdn.net/baidu_21345205/article/details/80360014