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
246 stars 196 forks source link

Android build fails due to "import 'dart:html'" #23

Closed PerLycke closed 3 years ago

PerLycke commented 4 years ago

Building flutter_sms: ^2.0.1+2 for Android fails with the following message:

Compiler message:
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart:html' import 'dart:html' as html;
^

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.15.3 19D76, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4) [✓] Chrome - develop for the web [✓] Android Studio (version 3.6) [✓] Connected device (2 available)

• No issues found!

knyghtryda commented 4 years ago

I'm having the same issue. 2.0.0+2 is still working.

colinlemmon commented 4 years ago

Having the same issue with 2.0.1+2

aminjoharinia commented 4 years ago

Having the same issue, tested both 2.0.1 +2 and 2.0.0 +2

PerLycke commented 4 years ago

Having the same issue, tested both 2.0.1 +2 and 2.0.0 +2

2.0.0+2 works. You need to point to that exact version without the ^ at the beginning

Stathis90 commented 4 years ago

Having the same issue with 2.0.1+2

ZigaZumer commented 4 years ago

¸Having the same issue with ^2.0.1+2

adamCPP commented 4 years ago

I'm having this issue on flutter_sms: ^2.0.1+2

rdev-software commented 4 years ago

Same

knyghtryda commented 4 years ago

I created a PR for this issue. Until then its probably safe to use use the previous version until the maintainer updates it.

fuzzy-memory commented 4 years ago

I am facing the same issues with 2.0.1+2 2.0.0 seems to be working just fine though

talcott commented 4 years ago

For me worked using version 2.0.0. Thanks a lot Per Lycke

sonia1997 commented 4 years ago

Thanks Per Lycke! It works.

ghost commented 4 years ago

@talcott and @sonia1997 Did it work on iOS it giving me error while build generation. I had same issue.

softmarshmallow commented 4 years ago

what cuases this?

rodydavis commented 3 years ago

fixed on version 2.3.1 reopen if it is still an issue