Currently i receive error after i run flutter clean
, before this it’s fine to run but suddenly now receive below error
<code>The plugin `cloud_firestore` doesn't have a main class defined in
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainjavaioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePlug
in.java or
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainkotlinioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePl
ugin.kt. This is likely to due to an incorrect `androidPackage: io.flutter.plugins.firebase.firestore` or `mainClass` entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the `androidPackage` 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.
</code>
<code>The plugin `cloud_firestore` doesn't have a main class defined in
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainjavaioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePlug
in.java or
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainkotlinioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePl
ugin.kt. This is likely to due to an incorrect `androidPackage: io.flutter.plugins.firebase.firestore` or `mainClass` entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the `androidPackage` 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.
</code>
The plugin `cloud_firestore` doesn't have a main class defined in
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainjavaioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePlug
in.java or
C:UsersnameAppDataLocalPubCachehostedpub.devcloud_firestore-5.0.1androidsrcmainkotlinioflutterpluginsfirebasefirestoreFlutterFirebaseFirestorePl
ugin.kt. This is likely to due to an incorrect `androidPackage: io.flutter.plugins.firebase.firestore` or `mainClass` entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the `androidPackage` 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.
i already did try delete pubspec.yaml, pubpsec.lock and also the ..cachehostedpub.dev.cache and then run again flutter clean
and then flutter pub get
nothing solve.
how do i solve this problem?
New contributor
arief farhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.