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' appears in /data/app/com.example.near_by_api_ex-SQmqvcjOXV3emcH2l_ILUw==/base.apk)
There have been some changes in Google's API & versions which are used in Flutter Location Package. We need to wait until they reflect those compatible changes in the package.
PR for that issue: https://github.com/Lyokone/flutterlocation/pull/803
There's a workaround for that. I forked the repo & used it in pubspec but this change is not working in my project. https://github.com/Lyokone/flutterlocation/issues/802#issuecomment-1408420419