-
Notifications
You must be signed in to change notification settings - Fork 208
Home
xiaojinzi123 edited this page Jul 7, 2019
·
40 revisions
Welcome to
Component
Wiki, Here you will get more infomation aboatComponent
.If you have some questions after reading, please commit your issue.
Here will describe how to set up project with least code.
If you use Androidx
, please see Dependence and Config AndroidX
Not AndroidX
please see Dependence and Config
Advanced Use see RouterAnno Annotation
@RouterAnno(
host = "app", // host is optional, default host is the value which you config in build.gralde
path = "info"
)
public class InfoAct extends AppCompatActivity {
// ......
}
More usage please see code routering or api routering
Router.with().hostAndPath("app/info").navigate();
- reason1:you forget to add Annotation Processor, please see config annotation processor
- reason2:you forget to register other business Modules, please see app register other module
- reason3:the name you register in applicaiton is different from you config in
build.gradle
of your module - reason4:the host and path you used is different from target Activity's host and path
- reason5:you can look for the reason in
Logcat
,Component
will output error info atDebug
level.