HuolalaTech / hll-wp-therouter-android

A framework for assisting in the renovation of Android componentization(帮助 App 进行组件化改造的动态路由框架)
https://therouter.cn/
Apache License 2.0
1.1k stars 129 forks source link

生成的routeMap.json一直为空 #109

Closed mtzqc closed 1 year ago

mtzqc commented 1 year ago

可以生成routeMap.json文件,但是json文件为空数组,之前都是正常的,以为是今天修改了配置,回退之前的正常的git版本还是一样。会正常生成ServiceProvider__TheRouter___xxxx文件,把上一个版本的routeMap.json复制进去可以正常运行,但是新添加的@Route不会自动添加到路由表,版本1.2.0-rc1,1.2.0-rc2都是这样

kymjs commented 1 year ago

用的是 KSP 还是 KAPT

mtzqc commented 1 year ago

id "com.google.devtools.ksp" version '1.8.20-1.0.11' apply false

mtzqc commented 1 year ago

jdk也切换成非android studio自带的17,控制台输出一切正常,就是生成的路由为空 image image image

Tan-Tshunglee commented 1 year ago

TheRouter编译插件:cn.therouter:plugin:1.2.0-rc1 当前编译 JDK Version 为::11.0.15 本次是增量编译::false ksp 版本1.9.10-1.0.13 也有这个问题 试过 1.1.4 router 版本也有这个问题

Tan-Tshunglee commented 1 year ago

app/src/main/assets/therouter/routerMap.json 这个文件倒是有更新,但是编译后打包的apk里面没有这个文件

kymjs commented 1 year ago

1.2.0-rc5已修复 https://github.com/HuolalaTech/hll-wp-therouter-android/releases/tag/v1.2.0-rc5

wangkai147 commented 1 year ago

image 希望cn.therouter.agp8后续版本号尽量统一一下

kymjs commented 1 year ago

已更新,可从mavenCentral官网地址查阅版本号,镜像仓库可能会延迟同步 https://repo.maven.apache.org/maven2/cn/therouter/

mtzqc commented 1 year ago

可以正常生成路由了

kymjs commented 1 year ago

1.2.0-rc4发现ActionManager有线程安全问题,请使用1.2.0-rc5