mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

package dev.steenbakker.mobile_scanner does not exist at buildtime

Open lucygeneric opened this issue 2 years ago • 1 comments

Heya Julian, first up thanks for the maint on the package, appreciate the effort.

I am having an issue where flutter can't find the plugin at buildtime.

..java/io/flutter/plugins/GeneratedPluginRegistrant.java:114: error: package dev.steenbakker.mobile_scanner does not exist
      flutterEngine.getPlugins().add(new dev.steenbakker.mobile_scanner.MobileScannerPlugin());

I have tried multiple versions of Flutter and the package, I have run out of ideas. Hopefully I missed something simple as I don't see anyone else reporting this issue. I checked the package cache and it sure looks like that package exists! Can't build out of either VSCode or Android Studio.

$ fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.0, on Ubuntu 22.04 LTS 5.15.0-33-generic, locale en_NZ.UTF-8)
    • Flutter version 3.0.0 at /home/steve/fvm/versions/3.0.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee4e09cce0 (3 weeks ago), 2022-05-09 16:45:18 -0700
    • Engine revision d1b9a6938a
    • Dart version 2.17.0
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.2)
[✓] Android Studio (version 2021.1)
[✓] VS Code
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
$ cat pubspec.lock | grep mobile_scanner -A 5 
  mobile_scanner:
    dependency: "direct main"
    description:
      name: mobile_scanner
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.1.1"
  mockito:
    dependency: "direct dev"

gradle-6.9-all.zip classpath 'com.android.tools.build:gradle:4.2.0' minSdkVersion 25 ext.kotlin_version = '1.5.10'

lucygeneric avatar May 30 '22 20:05 lucygeneric

hi, i have the same error

brux88 avatar Jun 23 '22 15:06 brux88

Please check with latest version v3.0.0-beta.4

juliansteenbakker avatar Dec 13 '22 15:12 juliansteenbakker