OpenFlutter / flutter_share_me

Flutter Plugin for sharing contents to social media. You can use it share to Facebook , WhatsApp , Twitter And System Share UI. Support Url and Text.
https://github.com/lizhuoyuan
Apache License 2.0
151 stars 145 forks source link

Failed to build with flutter_share_me dependencies #63

Closed jonathanwijaya closed 2 years ago

jonathanwijaya commented 2 years ago

Hi there, first thing first you have a great plugins which make our works easier. But I have a problem with your plugin when I want to build the APK for it(note: running the debug mode is fine). At first i'm not sure that your plugin is the problem because the error code shows below:

`* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugAndroidTestCompileClasspath'.
   > Could not find com.google.firebase:firebase-crashlytics:.
     Required by:
         project :app
   > Could not find com.google.firebase:firebase-analytics:.
     Required by:
         project :app`

I was frustated at first because I install the firebase analytics and crashlytics according to their documentation. After that we retraced all the packages that might have issue while building APK and turns out that your plugins is the problem. Do you face any of this problem before? I cannot really show Error Message or such because we manually trace the problem but i'm quite certain that it is from your plugin as I tried to retrace all of the packages. First time I installed the 1.14 version and I tried updating it to 1.20 too and the result is still the same. Any update will be appreciated.

jigarfumakiya commented 2 years ago

Hey @jonathanwijaya Looking at your logs seems this issue is related to firebase-analytics, not this plugin. But I recently faced this issue try the below steps it might work.

Update your app Gradle to

Screenshot 2021-10-11 at 11 27 23 AM

Screenshot 2021-10-11 at 11 27 40 AM

And project Gradle to

Screenshot 2021-10-11 at 11 27 52 AM

Also closing this issue since it's not related to this plugin.