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

【DoKit生态场景】-描述出现的问题 #986

Open
liujinlong123 opened this issue Feb 13, 2022 · 4 comments
Open

【DoKit生态场景】-描述出现的问题 #986

liujinlong123 opened this issue Feb 13, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@liujinlong123
Copy link

It is recommended to refer to the following process before submitting issues:#745
If you still cannot solve your problem, you can submit your issue according to the following template

Please complete the following informations.

Android、iOS? OS version? Brand?
Expected behavior and actual behavior.
Steps to reproduce the problem.
More informations such as error messages and stack traces are welcomed.

建议提issues之前可以参考一下DoKit社区答疑流程:#745
假如还是无法解决你的问题,你可以按照以下模板来提交你的issue

请补充如下信息。

Android 还是 iOS?系统版本是多少?手机品牌是什么?(如有)
期望的表现和实际的表现。(如有)
问题重现的步骤。(如有)
其他的错误信息和堆栈信息如果有也可以一并提供出来。(如有)

Android 第一次配置报以下错误:

java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.lang.Iterable.iterator()' on a null object reference
at b4.l$a.a(:68)
at y1.c$a.s(:211)
at y8.a.k(:33)
at n9.r0.run(:106)
at u9.a.W(:571)
at u9.a$b.c(:750)
at u9.a$b.m(:678)
at u9.a$b.run(:665)

@liujinlong123
Copy link
Author

补充一下错误日志:

W/System.err: m4.i0$c: m4.i0$c: java.lang.NoSuchFieldException: mService
W/System.err: at m4.i0.e(:224)
W/System.err: at s2.i.c(:68)
W/System.err: at s2.k.b(:71)
W/System.err: at y1.c.l(:89)
W/System.err: at y1.a$a.a(:321)
W/System.err: at com.mk.cutepets.MyApplication.onCreate(:20)
W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6724)
W/System.err: at android.app.ActivityThread.access$1500(ActivityThread.java:247)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
W/System.err: at android.os.Looper.loopOnce(Looper.java:201)
W/System.err: at android.os.Looper.loop(Looper.java:288)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7838)

2022-02-13 18:39:55.159 8594-8594/com.mk.cutepets W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
W/System.err: Caused by: m4.i0$c: java.lang.NoSuchFieldException: mService
W/System.err: at m4.i0.h(:255)
W/System.err: at m4.i0.j(:229)
W/System.err: at m4.i0.e(:220)
W/System.err: ... 16 more
W/System.err: Caused by: java.lang.NoSuchFieldException: mService
W/System.err: at java.lang.Class.getField(Class.java:1635)
W/System.err: at m4.i0.h(:246)
W/System.err: ... 18 more

@liujinlong123
Copy link
Author

Android 12是不是没有适配 ?

@RealOnlyone
Copy link
Collaborator

没有呢

@liujinlong123
Copy link
Author

com.didichuxing.doraemonkit.DoKitReal:
// 全局运行时hook 这里运行会报错
globalRunTimeHook()

@RealOnlyone RealOnlyone added the bug Something isn't working label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants