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

TheRouterPlugin与AutoService不兼容,无法编译 #144

Closed cocomikes closed 6 months ago

cocomikes commented 8 months ago

Hello, 大佬 @kymjs 。

HostAppLike.zip IApplicationLifecycleCallbacks.zip 文件后缀名改为.kt后可以查看源码。

我使用TheRouter[1.2.2-rc1, 1.2.1],结合AutoService[com.google.auto.service:auto-service:1.1.1],均无法完成app的编译,报错如下:

`> Task :app:debugTheRouterGetAllClasses FAILED ---------TheRouter transform start------------------------------------------- ---------TheRouter in jar get flow task json from: a/ServiceProviderTheRouter1967382627.class-------------------------------

FAILURE: Build failed with an exception.

kymjs commented 8 months ago

是哪个APP,有没有登记过 #57 用新版本试试

deanssss commented 8 months ago

我们也遇到这个问题了,在app Module中使用AutoService,会报错ZipException duplicate entry,TheRouter版本 1.2.2-rc6。

cocomikes commented 8 months ago

@kymjs 已关联。应用名称「租号玩」。在com.android.application module中使用TheRouter [1.2.1, 1.2.2-rc1, 1.2.2-rc6]均遇到此问题。

kymjs commented 7 months ago

@deanssss @cocomikes build.gradle 里面截个图,引入以及使用therouterautoservice的地方

@kymjs 已关联。应用名称「租号玩」。在com.android.application module中使用TheRouter [1.2.1, 1.2.2-rc1, 1.2.2-rc6]均遇到此问题。

我们也遇到这个问题了,在app Module中使用AutoService,会报错ZipException duplicate entry,TheRouter版本 1.2.2-rc6。