Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法跳转(there is no request target match) #29

Closed
pokerfaceCmy opened this issue Mar 8, 2022 · 5 comments
Closed

无法跳转(there is no request target match) #29

pokerfaceCmy opened this issue Mar 8, 2022 · 5 comments

Comments

@pokerfaceCmy
Copy link

pokerfaceCmy commented Mar 8, 2022

D/DRouterCore: Request start -------------------------------------------------------------
D/DRouterCore: primary request "1", router uri "didi://router/login?a=1&b=2", need callback "true"
W/DRouterCore: warning: there is no request target match
D/DRouterCore: primary request "1" complete, router uri "didi://router/login?a=1&b=2", all reason {}
D/0PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
D/8PRETTY_LOGGER: │ false
D/0PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
D/DRouterCore: Request finish ------------------------------------------------------------

LoginActivity

@AndroidEntryPoint
@Router(scheme = "didi", host = "router", path = "/login")
class LoginActivity : BaseActivity<ActivityLoginBinding>()

跳转的代码

DRouter.build("didi://router/login?a=1&b=2")
                    .start(context) { result ->
                        val r = result.isActivityStarted
                        Logger.d(r)
                    }

build.gradle

buildscript {
    repositories {
        // other repositories...
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        // other plugins...
        classpath(Deps.Jetpack.Hilt.hiltPlugin)
        classpath "io.github.didi:drouter-plugin-proxy:1.0.2"
    }
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.1.1' apply false
    id 'com.android.library' version '7.1.1' apply false
    id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
    id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.10' apply false
    id 'org.jetbrains.kotlin.jvm' version '1.6.10' apply false
}


task clean(type: Delete) {
    delete rootProject.buildDir
}
@pokerfaceCmy
Copy link
Author

application build.gradle

plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
    id("kotlin-kapt")
    id("dagger.hilt.android.plugin")
    id("com.didi.drouter")
}

@pokerfaceCmy
Copy link
Author

common build.gradle

api ("io.github.didi:drouter-api:2.2.1")

@weigao123
Copy link
Collaborator

weigao123 commented Mar 8, 2022

偶现的吗,windows电脑?
参考
#28

@pokerfaceCmy
Copy link
Author

必现

@weigao123
Copy link
Collaborator

weigao123 commented Mar 13, 2022

试一下2.2.2 或者 2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants