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

【重要】================提问题模板================ #31

Open
weigao123 opened this issue Mar 13, 2022 · 1 comment
Open

【重要】================提问题模板================ #31

weigao123 opened this issue Mar 13, 2022 · 1 comment

Comments

@weigao123
Copy link
Collaborator

weigao123 commented Mar 13, 2022

请按照以下模板创建新的issue,填写环境,方便快速定位问题

【平台环境】:mac/windows
【Android Studio版本】:Bumblebee | 2021.1.1 Patch 2
【编译使用Java版本】:jdk11,查看AS->设置->Build,Execution,Deployment->Build Tools->Gradle->Gradle JDK
【kotlin版本】:org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30
【gradle-plugin版本】:com.android.tools.build:gradle:4.2.2
【gradle-wrapper版本】:gradle-6.7.1-bin.zip
【drouter版本】:drouter-api:2.3.0
【复现步骤】:...
【期望结果】:...
【日志】:如方便最好也贴出来

@weigao123 weigao123 changed the title 提问题模板 【重要】提问题模板 Mar 13, 2022
@weigao123 weigao123 changed the title 【重要】提问题模板 【重要】================提问题模板================ Mar 13, 2022
@weigao123
Copy link
Collaborator Author

weigao123 commented Mar 13, 2022

遇到问题后自查方法

1、首先确认下这些类是不是在apk里
可以把debug的apk拖到AndroidStudio里看看有没有这个类
遇到找不到目标的问题可能只是因为没有把module引入进来
api project(':xxx')

2、打开编译期日志
apply plugin: 'com.didi.drouter'
drouter {
debug = true
}
查看编译期是否有问题,可以看到路由表,可以看到哪些类用到了DRouter

3、看一下插件生成的类是否正常
目录在
app/build/intermediates/transforms/DRouter/debug/xx/com/didi/drouter/loader

4、运行期日志
Logcat中抓取 DRouterCore 关键字

5、接入方法参见wiki
https://github.com/didi/DRouter/wiki

@weigao123 weigao123 mentioned this issue May 15, 2022
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

1 participant