screenshots icon indicating copy to clipboard operation
screenshots copied to clipboard

Can't install on M1

Open fennelhans opened this issue 2 years ago • 5 comments

Can't seem to get this installed and working on an M1 Mac.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.67.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!
flutter pub global activate screenshots
Resolving dependencies...
+ archive 2.0.13 (3.3.0 available)
+ args 1.6.0 (2.3.1 available)
+ charcode 1.3.1
+ collection 1.16.0
+ convert 2.1.1 (3.0.2 available)
+ crypto 2.1.5 (3.0.2 available)
+ file 5.2.1 (6.1.2 available)
+ intl 0.16.1 (0.17.0 available)
+ meta 1.8.0
+ path 1.8.2
+ platform 2.2.1 (3.1.0 available)
+ process 3.0.13 (4.2.4 available)
+ pub_cache 0.2.3 (0.3.1 available)
+ pub_semver 1.4.4 (2.1.1 available)
+ resource 2.1.7
+ screenshots 2.1.1
+ source_span 1.9.0
+ string_scanner 1.1.1
+ term_glyph 1.2.0
+ tool_base 1.9.5+3
+ tool_mobile 1.9.5+1
+ typed_data 1.3.1
+ yaml 2.2.1 (3.1.1 available)
Building package executables...
Failed to build screenshots:main:
../../../../.pub-cache/hosted/pub.dartlang.org/platform-2.2.1/lib/src/interface/local_platform.dart:45:41: Error: Member not found: 'packageRoot'.
  String get packageRoot => io.Platform.packageRoot;
                                        ^^^^^^^^^^^
pub finished with exit code 1

fennelhans avatar Jun 06 '22 20:06 fennelhans

I have exactly the same problem on a Windows 11 computer, so the problem seems to be Flutter rather than the processor.

Medformatik avatar Jun 13 '22 17:06 Medformatik

Is there a workaround? Maybe needs to get updated to Flutter 3?

rodydavis avatar Jul 25 '22 15:07 rodydavis

Same here on a Intel MacBook Pro

benjamincombes avatar Aug 05 '22 08:08 benjamincombes

@rodydavis im using Flutter 3.0.5 to be exact, and im facing the same issue too (Error: Member not found: 'packageRoot'.) on m1 Macbook.

KennyChan94P avatar Sep 01 '22 02:09 KennyChan94P

I'm on flutter 2.10.5, Mac M1 and i have the same issue

itsthetaste avatar Sep 02 '22 10:09 itsthetaste