簡體   English   中英

java.lang.IncompatibleClassChangeError:找到接口 com.google.android.gms.location.SettingsClient

[英]java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.SettingsClient

FATAL EXCEPTION: main Process: com.example.near_by_api_ex, PID: 10222 java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.nearby.connection.ConnectionsClient, but class was expected (declaration of 'com.google.android .gms.nearby.connection.ConnectionsClient'出現在/data/app/com.example.near_by_api_ex-SQmqvcjOXV3emcH2l_ILUw==/base.apk)

Google 的 API 和 Flutter 位置 Package 中使用的版本發生了一些變化。我們需要等到它們反映 package 中的這些兼容變化。

該問題的 PR: https://github.com/Lyokone/flutterlocation/pull/803

有一個解決方法。 我分叉了 repo 並在 pubspec 中使用了它,但此更改在我的項目中不起作用。 https://github.com/Lyokone/flutterlocation/issues/802#issuecomment-1408420419

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM