Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGP8.0以上直接适配,无需修改原来写的代码 #1066

Open
FlyJingFish opened this issue Jun 19, 2024 · 8 comments
Open

AGP8.0以上直接适配,无需修改原来写的代码 #1066

FlyJingFish opened this issue Jun 19, 2024 · 8 comments

Comments

@FlyJingFish
Copy link

FlyJingFish commented Jun 19, 2024

点此前往!!

@FlyJingFish FlyJingFish changed the title AGP8.0以上直接适配,无需修改原来写的 AGP8.0以上直接适配,无需修改原来写的代码 Jun 19, 2024
@andremw96
Copy link

how to test or check if the arouter-register is still working after implement your solution?

@FlyJingFish
Copy link
Author

how to test or check if the arouter-register is still working after implement your solution?

When you delete classpath "com.alibaba:arouter-register:?" and still see the following log: (当你删除 classpath "com.alibaba:arouter-register:?" 还能看到如下日志的时候)

Load router map by arouter-auto-register plugin.

@qq97241481
Copy link

但是我试了直接去掉 arouter的插件依赖,项目运行也没问题,各种跳转也不受影响,不知道为啥

@FlyJingFish
Copy link
Author

但是我试了直接去掉 arouter的插件依赖,项目运行也没问题,各种跳转也不受影响,不知道为啥

额……你还没懂Arouter的原理。不谈原理直接简单粗暴一点解释就是,使用插件就是把相关的路径信息类找出来并写入安装包内,不使用插件就是在运行时动态的寻找这些类。使用插件的好处就是运行时不用寻找这些类了。ARouter用不用插件都可以跑起来,就看你如何选择了

@andremw96
Copy link

log

i don't get this console log, but already implemented the class ARouterMatch in my project, should I call it anywhere on my project?

@FlyJingFish
Copy link
Author

FlyJingFish commented Oct 29, 2024

log

i don't get this console log, but already implemented the class ARouterMatch in my project, should I call it anywhere on my project?

First, if you want to see Arouter's log, make sure you have turned on the switch for Arouter's related logs. Secondly, make sure you have read my adaptation guide in detail and tested it. This guide is a complete adaptation, and no other steps are required. In addition, I hope you can at least give a star after benefiting from it, thank you!

@andremw96
Copy link

log

i don't get this console log, but already implemented the class ARouterMatch in my project, should I call it anywhere on my project?

First, if you want to see Arouter's log, make sure you have turned on the switch for Arouter's related logs. Secondly, make sure you have read my adaptation guide in detail and tested it. This guide is a complete adaptation, and no other steps are required. In addition, I hope you can at least give a star after benefiting from it, thank you!

I've already replicate your solution, and seems like the code is not call when I run my app

@FlyJingFish
Copy link
Author

log

i don't get this console log, but already implemented the class ARouterMatch in my project, should I call it anywhere on my project?

First, if you want to see Arouter's log, make sure you have turned on the switch for Arouter's related logs. Secondly, make sure you have read my adaptation guide in detail and tested it. This guide is a complete adaptation, and no other steps are required. In addition, I hope you can at least give a star after benefiting from it, thank you!

I've already replicate your solution, and seems like the code is not call when I run my app

I have described in detail the various possible problems and their principles in the guide, and I published the guide after testing it. If you still cannot succeed, please check whether you have configured the AndroidAOP library correctly according to the access steps. It is not enough to just copy the classes in the guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants