J'ai une application qui contient une vue web. Tout se passe bien mais dans mon onglet run dans Android studio. Je reçois le message suivant. Mon application fonctionne toujours bien. Mais il me dérange toujours. Je ne sais pas grand chose sur ce 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)
J'ai fait des recherches sur Google et j'ai appris que je devais déclarer le service dans le fichier manifeste.
Source : https://stackoverflow.com/a/13600695/13485181
Mais je ne sais pas quel service je dois déclarer dans le manifeste.
UPDATE
Ce post est similaire au mien
La réponse acceptée est bonne
https://stackoverflow.com/a/62220764/13485181
J'utilise également
implementation 'com.google.android.gms:play-services-ads:19.3.0'
Je suppose donc que cette dépendance est à l'origine de ce message. Mais y a-t-il un moyen de supprimer ce message même s'il n'affecte pas l'application ?
Dépendance
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'