fluttercommunity / flutter_sms

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
https://fluttercommunity.github.io/flutter_sms/
MIT License
248 stars 202 forks source link

Flutter sms Problem with namespace #96

Open WaseemAlBizreh opened 3 weeks ago

WaseemAlBizreh commented 3 weeks ago

A problem occurred configuring project ':flutter_sms'. Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace. If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

sachinshrestha483 commented 3 weeks ago

same did you get solution

WaseemAlBizreh commented 3 weeks ago

same did you get solution

I tried to specify namespace in module build file, but namespace is already specified

Then I specified package attribute in source AndroidManifest.xml file. But it didn't work

I tried to update AGP and gradle but it didn't work

I changed package to background_sms And I faced same issue

Finally, I used gradle 7.6 Then background_sms worked but flutter_sms didn't work

WaseemAlBizreh commented 3 weeks ago

I finally figured out that the problem might be caused by the package being old and not compatible with Gradle 8.

P-yiush07 commented 1 week ago

I finally figured out that the problem might be caused by the package being old and not compatible with Gradle 8.

Any ways for fixing it ? I am developing application for Hackathon, where i have to send message in background. How can i do this ?

P-yiush07 commented 1 day ago

I created the plugin to send background sms, check it out

https://pub.dev/packages/flutter_background_messenger