Closed aTeamSolace closed 4 years ago
Hi @aTeamSolace ,
I think the package google_api_availability
is related to geolocator
package that is used by our package, and I checked geolocator and they updated version recently which seems because of the above issue.
Please update to version 0.9.4 and check if it is working as I updated geolocator's version to newest one in that version.
FYI, both google_api_availability and geolocator are 3rd party packages which means we are limited to handle issues related to it.
hi @fysoul17, I updated version to 0.9.4 but still, this issue occurred. I also use flutter clean command and then flutter package get but still occurring.
Have you tried with an empty project? I tried with a pure empty project and does not have any issue.
no not with an empty project but I'm working on one client application actually this plugin is worked before some days version 0.9.0 and some changes I had done yesterday then this issue occurred well ill check, if it solved then okay else, will change code
In the meantime, try to remove 'pubspec.lock' file and rebuild to see if it still happens.
no sir, i was removed 'pubspec.lock' this file and then run project not working actually issue occur with google_map_location_picker This plugin also
actually issue occur with google_map_location_picker This plugin also
Yes, it is because that plugin also uses geolocator
package. The error you are seeing is actually from geolocator package.
I am sorry but I have no idea of what is happening there. Can you issue this to geolocator package side? I can't ask them since I cannot reproduce it.
Closing as there is no further update. Please feel free to re-open if you have an update or an issue.
The plugin
google_api_availability
doesn't have a main class defined in E:\flutter_installation\flutter.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.4\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java or E:\flutter_installation\flutter.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.4\android\src\main\kotlin\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.kt. This is likely to due to an incorrectandroidPackage: com.baseflow.googleapiavailability
ormainClass
entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix theandroidPackage
entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile.