AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
https://pub.dev/packages/flutter_barcode_scanner
MIT License
381 stars 501 forks source link

Flutter v1.12.13+hotfix.5, bug on compile #60

Closed LuizLeite closed 4 years ago

LuizLeite commented 4 years ago

Hi.

This package ran very well, but in the new version of Flutter, it has been a problem compiling and running.

Flutter v1.12.13+hotfix.5 Dart 2.7.0

Tanks

AmolGangadhare commented 4 years ago

@LuizLeite

Thanks for reporting the issue.

I'm not able to reproduce this issue. Can you add some error logs or some steps to reproduce this?

LuizLeite commented 4 years ago

Hi. 1) Create a default Flutter 1.12.13 project. 2) Install the package ^0.1.7. 3) When running a dialog appears on the Android screen saying that my app has stopped. 4) if I remove the package the app runs normally. Only that.

AmolGangadhare commented 4 years ago

@LuizLeite

I've made a fix to this but many users are continuously reporting related issue for most of the plugins after upgrade. As of now i think we should wait for some time, anyways i will update the plugin after few days.

I'll keep you updated on this.

Thanks

marcos930807 commented 4 years ago

Hi.

  1. Create a default Flutter 1.12.13 project.
  2. Install the package ^0.1.7.
  3. When running a dialog appears on the Android screen saying that my app has stopped.
  4. if I remove the package the app runs normally. Only that.

Same happens to me

varunnayal commented 4 years ago

@LuizLeite @marcos930807: You can try using solution mentioned in this and this comment. It worked for me!

marcos930807 commented 4 years ago

In my case i modified my cache pup project and cast to a FlutterFragmentActivity because that is the entry Point of my Android part. Thanks

AmolGangadhare commented 4 years ago

This issue has been resolved. It will be available in the new release.

kumarmohan7 commented 4 years ago

please release updated about this issue or give solution for solve this issue.

nandychu commented 4 years ago

Same problem, can you give a solution or release the new fixed version? thanks!

HektorCyC commented 4 years ago

Is this resolved in a new release? Which version??

nandychu commented 4 years ago

Seems that its fixed on last commit, not available on pub yet btw, installed via git, on pubspec paste (take care of indentation): flutter_barcode_scanner: git: git://github.com/AmolGangadhare/flutter_barcode_scanner.git

HosseinTraining commented 4 years ago

I have this problem too please release updated about this issue

HektorCyC commented 4 years ago

Seems that its fixed on last commit, not available on pub yet btw, installed via git, on pubspec paste (take care of indentation): flutter_barcode_scanner: git: git://github.com/AmolGangadhare/flutter_barcode_scanner.git

Here's the right way to install from Git https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages

uplinkcreativestudio commented 4 years ago

run well when changing my cache FlutterBarcodeScannerPlugin.java

new import io.flutter.embedding.android.FlutterActivity

old io.flutter.app.FlutterActivity

https://prnt.sc/qabin6

thanks to @DiegoLimeiradaSilva

Elvino12 commented 4 years ago

I had the same issues, and i solved change the mod that i import the package on pubspec.yam like this: flutter_barcode_scanner: git: git://github.com/AmolGangadhare/flutter_barcode_scanner.git

Sorry about my english

AmolGangadhare commented 4 years ago

V1.0.0 has been released

Closing this, feel free to reopen if the issue persists