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

关于Arouter新增Provider报空 卸载后重装正常运行的问题 #996

Closed
weizhihan opened this issue Mar 18, 2022 · 5 comments
Closed

Comments

@weizhihan
Copy link

Look at here

  • → Did you read the doc carefully
  • → Did you add annotation above target activity
  • → Did you add annotation processor dependence
  • Receive only bugs and suggestions

提 issue 前请看

  • → 你是否已经熟读 README
  • → 你是否在每一个包含页面 or 服务的模块中依赖了 compiler sdk
  • 这里不是答疑的地方,仅接受 bug 和建议,答疑请去答疑群
@weizhihan weizhihan reopened this Mar 18, 2022
@weizhihan
Copy link
Author

目前我们的项目在新增Provider之后 通过autowired编译生成了对应的文件 可以跳转 但是在调用provider会出现IXXXprovider为空的错误 重新卸载之后安装就正常了 请问这个问题是由于编译后文件没有完成打包造成的吗?

@phoenixsky
Copy link

@weizhihan
我这也会有provider为空的问题。kotlin,同事那是必现,我这没事,但不知道是什么原因,急着上线fix,就通过直接依赖的方式,规避了使用provider。
现在有时间调查,代码回滚回来,发现又不为空了。

这块太危险了,我现在不敢使用provider了已经。

@zhi1ong
Copy link
Member

zhi1ong commented May 7, 2022

clean rebuild 解决所有问题

@zhi1ong zhi1ong closed this as completed May 7, 2022
@phoenixsky
Copy link

clean rebuild 当时clean rebuild invalid cache 都试了 还是崩溃

@zhi1ong
Copy link
Member

zhi1ong commented May 9, 2022

clean rebuild 当时clean rebuild invalid cache 都试了 还是崩溃

ARouter 逻辑其实是非常简单的,都有源码 debug 一下就好,不会出现一会好使一会不行的情况,研究研究总能发现问题所在

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