gpt4 book ai didi

android - java.lang.IllegalArgumentException : Service not registered

转载 作者:行者123 更新时间:2023-12-03 20:48:56 31 4
gpt4 key购买 nike

我有一个包含 webview 的应用程序。一切都很顺利,但在我的 android studio 中的运行选项卡中。我收到以下消息。我的应用程序仍然可以正常工作。但它仍然困扰着我。我对这条消息了解不多。

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)
我搜索了谷歌并知道我必须在 list 文件中声明服务。
来源 https://stackoverflow.com/a/13600695/13485181
但我不知道我必须在 list 中声明哪个服务。
更新
这个帖子和我的差不多
Android foreground service consistently throws "java.lang.IllegalArgumentException: Service not registered" exception
接受的答案很好
https://stackoverflow.com/a/62220764/13485181
我也用
 implementation 'com.google.android.gms:play-services-ads:19.3.0'
所以我猜这种依赖会导致该消息。但是有什么方法可以删除该消息,尽管它不会影响应用程序。
依赖
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'

最佳答案

对于任何为此苦苦挣扎的人,您将不得不根据启动应用程序的最新方法重做您的应用程序
谷歌几乎改造了整个管道......
https://firebase.flutter.dev/docs/overview
https://firebase.flutter.dev/docs/migration/

关于android - java.lang.IllegalArgumentException : Service not registered,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64059880/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com