java.lang.IllegalArgumentException:服务未注册 [英] java.lang.IllegalArgumentException: Service not registered

查看:144
本文介绍了java.lang.IllegalArgumentException:服务未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含webview的应用程序.一切都进行得很好,但是在android studio的运行"选项卡中.我收到以下消息.我的应用程序仍然可以正常工作.但这仍然困扰着我.我对这则消息不太了解.

I have a app which contains webview. Every thing is going well but in my run tab in android studio. I am getting below message. My app still working fine. But it still bugging me. I don't know much about this message.

Exception thrown while unbinding
    java.lang.IllegalArgumentException: Service not registered: lx@643d3c7
        at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1526)
        at android.app.ContextImpl.unbindService(ContextImpl.java:1717)
        at android.content.ContextWrapper.unbindService(ContextWrapper.java:722)
        at ci.b(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):1)
        at ci.a(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):6)
        at ly.A(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):10)
        at li.a(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):3)
        at ec.run(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):3)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at jb.run(:com.google.android.gms.dynamite_measurementdynamite@203615046@20.36.15 (040306-0):6)

我搜索了google,发现我必须在清单文件中声明服务.

I searched google and come to know I have to declare service in manifest file.

来源 https://stackoverflow.com/a/13600695/13485181

但是我不知道我必须在清单中声明哪个服务.

But I don't know which service I have to declare in manifest.

更新

此帖子类似于我的帖子

Android前台服务始终抛出"java.lang.IllegalArgumentException:服务未注册".例外

接受的答案很好

https://stackoverflow.com/a/62220764/13485181

我也使用

 implementation 'com.google.android.gms:play-services-ads:19.3.0'

因此,我猜想这种依赖性导致了该消息.但是有什么方法可以删除该消息,尽管它不会影响应用程序.

So I guess this dependency causing that message. But is there any way to remove that message although it's not effect the app.

依赖性

implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation 'com.google.android.gms:play-services-ads:19.3.0'

推荐答案

对于任何为此苦恼的人,您都必须根据启动该应用程序的最新方法来重做您的应用程序Google几乎对整个管道进行了改造...

For anyone struggling with this, you will have to redo your app based on the latest methods on launching the app Google revamped pretty much the entire plumbing...

https://firebase.flutter.dev/docs/overview https://firebase.flutter.dev/docs/migration/

这篇关于java.lang.IllegalArgumentException:服务未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆