Comments (7)
annotationProcessor 'com.github.mzule.activityrouter:compiler:1.1.7'
在主app和module里面都需要配置这个属性
from activityrouter.
你是不是moduleA,B中没有写module类,主项目中的的module类为AppModule
from activityrouter.
@Cuieney @yangchun9525 应该是没有加module类, 我也碰到相同的问题,加类后可以使用。
在App module中额外加入AppModule类,用@module声明
@Module("app")
public class AppModule {
}
在moduleA中额外加入ModuleA类,用@module声明
@Module("modulea")
public class ModuleA {
}
在App类中用@modules声明
@Modules({"app", "modulea"})
public class App extends Application implements RouterCallbackProvider{
...
}
from activityrouter.
这样做了之后发生这个异常
java.lang.NoClassDefFoundError: com.github.mzule.activityrouter.router.RouterInit
from activityrouter.
@liy452083759 请问现在你的这个问题解决了么,今天组件化集成Router,出现了你的这个问题
from activityrouter.
from activityrouter.
@Cuieney 我是按照官网的配置来的,结果出现那个问题...
from activityrouter.
Related Issues (20)
- 不支持activity之间intent透传
- 无法进行复杂数据类型传递,譬如ArrayList等 HOT 2
- ActivityRouter实现原理
- ActivityRouter原理 HOT 2
- ActivityRouter实现原理
- RouterInit NotFound HOT 2
- 当activity为singtask模式时的问题
- 多模块需要主模块依赖其他子模块?
- 是否还会维护? HOT 2
- 是否还会维护
- url address contains “&” HOT 2
- 含有“#”的链接后面拦截问题; HOT 1
- 使用annotationProcessor 这个无法多module跳转
- 可以从自己 app 的 webview 跳到自己的 activity 吗?
- 多地址转换
- RouterInit错误 HOT 3
- url参数搞不定? HOT 1
- 没有搞懂怎么引入 HOT 1
- android x的适配 HOT 1
- 是否支持对象类型的参数传递?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activityrouter.