Piasy / AndroidTDDBootStrap

A bootstrap project for TDD Android.
MIT License
877 stars 143 forks source link

Router is not work #20

Open Luolc opened 7 years ago

Luolc commented 7 years ago

I used ./install_app.sh to install a debug app on my mobile and failed to start trending activity.

Related log:

04-11 23:03:45.627 12155-12155/com.github.piasy.octostars E/Router: com.chenenyu.router.RouterBuildConfig
04-11 23:03:45.928 12155-12155/com.github.piasy.octostars E/Router: Could not find an Activity that matches the given uri.

First line is raised when Router.initialize(). RouterBuildConfig is not generated at compile-time, then Class.forname failed.

Second line is raised when Router.build(...).go(...) at splash view. Initialization is failed and it cannot find corresponding activity.

BTW, you forgot to add Router.openLog() at https://github.com/Piasy/AndroidTDDBootStrap/blob/master/contrib/business/src/main/java/com/github/piasy/octostars/BootstrapApp.java#L96 :)

FYI: update the router version to latest (0.7.0) could help.

Piasy commented 7 years ago

Sorry that I was too busy these days, I'll try to take a look into it maybe a week later :)