ARouter
ARouter copied to clipboard
💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
Gradle 7.2 ,AGP7.1.2, build.gradle中配置的 `compileOptions { targetCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11 }`
调用 ARouter.init 在AGP7.0.2的时候正常,升级到7.2.1的时候出现这个问题,因为我没使用自动注册插件,追了下代码,问题似乎出在编译生成的文件上 正常情况的routermap  异常情况的routermap  多生成了ExternalSynthetic$Condy0这个东西,然后通过反射时创建的就报错了
Androidx,Java和kotlin混合开发,编译报错如下: 注: ARouter::Compiler The user has configuration the module name, it was [app]注: ARouter::Compiler >>> AutowiredProcessor init. Found autowired fieldtart... InterceptorProcessor init. > RouteProcessor init. Found routes, start... Found routes,...
提升构建速度建议:使用 KSP 1.0 (Kotlin Symbol Processing) 代替 kapt 缩短构建时间
当使用同一`Route$path` 指向多个服务实现时 , arouter-compiler根据默认排序会选择 服务A , 在Route注解中提供了priority配置 为何不基于priority优先级配置选择服务 ``` @Route(path = "/main/test") public class A{} @Route(path = "/main/test") public class B{} ``` 期望配置如下时 arouter-compiler应该选择 服务B去generated code ``` @Route(path = "/main/test"...
#### 功能:添加多路由支持,同一个页面 or service 添加多个路由路径 ##### 适用场景: 1. ios & andorid 由于历史原因定义的路由不一致,想要进行统一路由的时候,又需要兼容老的路由地址,可通过多路由地址解决 2. 其他... ##### 使用方式: 1. 直接在activity或其他Arouter支持的类上添加多个@Route注解,如: ``` @Route(path = "/module/1") @Route(path = "/test/multiRoute") public class TestModuleActivity extends Activity...
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at com.alibaba.android.arouter.facade.model.TypeWrapper.(SourceFile:3) at com.ysch.healthplatform.ui.main.activity.PersonalInformationActivity$$ARouter$$Autowired$赵.(SourceFile:1) at com.ysch.healthplatform.ui.main.activity.PersonalInformationActivity$$ARouter$$Autowired.inject(SourceFile:3) at com.alibaba.android.arouter.core.AutowiredServiceImpl.赵(SourceFile:3) at com.alibaba.android.arouter.core.AutowiredServiceImpl.autowire(SourceFile:1) at 卜.周.秦(SourceFile:2) at com.alibaba.android.arouter.launcher.ARouter.inject(SourceFile:1) at com.example.fragment.library.base.activity.BaseActivity.onCreate(SourceFile:4) at android.app.Activity.performCreate(Activity.java:8086) at android.app.Activity.performCreate(Activity.java:8074) at...
使用kts脚本构建项目ARouter无法正常使用,一直 “ARouter There is no route match the path” 切换回groovy是正常的,说明我代码是没问题的 我不确定我kts写的是否有问题,请问ARouter在kts中如何使用
``` There is no single replacement for the Transform API—there are new, targeted APIs for each use case. All the replacement APIs are in the `androidComponents {}` block. For more...