mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 462 forks source link

Package does not exists - android #112

Closed aravindhkumar23 closed 4 years ago

aravindhkumar23 commented 5 years ago

Bar code scanner was working fine but now it showing me error

followed the installation instruction from github

/Users/aravindhkumar/Projects/test_work/test_app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:4: error: package com.apptreesoftware.barcodescan does not exist
import com.apptreesoftware.barcodescan.BarcodeScanPlugin;

/Users/aravindhkumar/Projects/test_work/test_app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:18: error: cannot find symbol
    BarcodeScanPlugin.registerWith(registry.registrarFor("com.apptreesoftware.barcodescan.BarcodeScanPlugin"));
    ^
  symbol:   variable BarcodeScanPlugin
  location: class GeneratedPluginRegistrant

Tested with barcode_scan: 0.0.8 and barcode_scan: 1.0.0 it shows the above error

error not showing when using barcode_scan: 0.0.7

can anyone help me with this? I need to deploy the app to play store?

devtronic commented 4 years ago

Try flutter clean, remove all dependencies and generated files and run pub install and flutter build apk