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

HuaweiImpl调用崩溃 #21

Closed
dakun666 opened this issue Apr 15, 2021 · 2 comments
Closed

HuaweiImpl调用崩溃 #21

dakun666 opened this issue Apr 15, 2021 · 2 comments

Comments

@dakun666
Copy link

日志如下

    java.lang.IllegalArgumentException: Service not registered: com.github.gzuliyujiang.oaid.impl.HuaweiImpl$1@f4ac590
        at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1832)
        at android.app.ContextImpl.unbindService(ContextImpl.java:1880)
        at com.github.gzuliyujiang.oaid.impl.HuaweiImpl$1.onServiceConnected(HuaweiImpl.java:76)
        at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2037)
        at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2069)
        at android.os.Handler.handleCallback(Handler.java:900)
        at android.os.Handler.dispatchMessage(Handler.java:103)
        at android.os.Looper.loop(Looper.java:219)
        at android.app.ActivityThread.main(ActivityThread.java:8349)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

报错代码为HuaweiImpl -> doGet -> onServiceConnected ->

finally {
    context.unbindService(this);
}
@liyujiang-gzu
Copy link
Member

这种偶现的闪退应该不止华为,各种难以预料的情况,unbindService都有可能抛异常

@liyujiang-gzu
Copy link
Member

See 4.0.0

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

2 participants