Closed jimmyff closed 2 years ago
Hi @jimmyff, can you check if any of your dependencies are out of date and upgrade them? You can check using
flutter pub outdated
.
Please also provide the full verbose logs of the command you experienced this error with.
Thank you
Yep, done that, all package major versions are latest:
Showing outdated packages.
[*] indicates versions that are not the latest available.
Package Name Current Upgradable Resolvable Latest
direct dependencies: all up-to-date.
dev_dependencies: all up-to-date.
transitive dependencies:
js *0.6.3 *0.6.3 *0.6.3 0.6.4
material_color_utilities *0.1.3 *0.1.3 *0.1.3 0.1.4
path *1.8.0 *1.8.0 *1.8.0 1.8.1
source_span *1.8.1 *1.8.1 *1.8.1 1.8.2
vector_math *2.1.1 *2.1.1 *2.1.1 2.1.2
transitive dev_dependencies:
test_api *0.4.8 *0.4.8 *0.4.8 0.4.9
Just did a fresh build after doing this and reinstalling pods:
Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'.
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart'
import 'package:material_color_utilities/material_color_utilities.dart';
^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type.
final Scheme scheme;
^^^^^^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'.
scheme = Scheme.light(seedColor.value);
^^^^^^
../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'.
scheme = Scheme.dark(seedColor.value);
^^^^^^
../.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
io.Platform.packageRoot; // ignore: deprecated_member_use
^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1 asFileUri (package:vm/kernel_front_end.dart:623:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:763:21)
<asynchronous suspension>
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9)
<asynchronous suspension>
#4 starter (package:flutter_frontend_server/server.dart:85:12)
<asynchronous suspension>
#5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
<asynchronous suspension>
Failed to package /Users/jimmyff/esc_app.
Hmm, @jimmyff, can you check if you have this issue with the default flutter create
project?
If you do, I suspect there might be an issue with your pub cache.
Can you also provide your pubspec.yaml
and pubspec.lock
?
Hey @danagbemava-nc thanks for the input, I've just created a new project and it launched okay through xcode.
Hi @jimmyff, I can see you have a local package defined in your pubspec.yaml
.
Is everything up to date in there as well?
Hi @danagbemava-nc yep, i have checked esc_core and this is as up to date as I can get it:
Showing outdated packages.
[*] indicates versions that are not the latest available.
Package Name Current Upgradable Resolvable Latest
direct dependencies: all up-to-date.
dev_dependencies: all up-to-date.
transitive dependencies:
js *0.6.3 *0.6.3 *0.6.3 0.6.4
transitive dev_dependencies:
_fe_analyzer_shared *31.0.0 *31.0.0 *31.0.0 36.0.0
analyzer *2.8.0 *2.8.0 *2.8.0 3.3.1
dart_style *2.2.1 *2.2.1 *2.2.1 2.2.2
all dependencies are up-to-date.
Any other ideas?
Thanks very much
Can you please provide full verbose logs of the command that you are experiencing this issue with? The output may be huge, so kindly put it into a .txt file and attach it here.
Thank you
Hi @jimmyff ,
I'am experiencing the same issue (juste after upgrading my flutter sdk vresion). Did you find a solution ?
`Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'. ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart' import 'package:material_color_utilities/material_color_utilities.dart'; ^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type. final Scheme scheme; ^^^^^^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'. scheme = Scheme.light(seedColor.value); ^^^^^^ ../../../../SDKs/flutter/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'. scheme = Scheme.dark(seedColor.value); ^^^^^^ ../../../../SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'. io.Platform.packageRoot; // ignore: deprecated_member_use ^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file: and data: URIs)
material_color_utilities
For me, it was enough to add it to my pubspec.yaml like this:
dependencies:
...
material_color_utilities: ^0.1.3
I've been getting the same xcode error since I updated my flutter sdk. I was trying to upload a new version but xcode build failed and got this instead.
I tried what @mawoka-myblock suggested but still getting the same issue.
Maybe the beta-channel could help, @omenchaca-maxaccel ?
I also encountered this error on in a Flutter SDK that was relatively small. I had to add material_color_utilities
to my project, which seems unnecessary since I'm not using it.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Xcode is failing with the following error:
This is a production app that is currently live on the app store however has been upgraded to support null saftey.
Xcode build error logs
``` /bin/sh -c /Users/jimmyff/esc_app/ios/build/Runner.build/Profile-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh Error: Couldn't resolve the package 'material_color_utilities' in 'package:material_color_utilities/material_color_utilities.dart'. ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:7:8: Error: Not found: 'package:material_color_utilities/material_color_utilities.dart' import 'package:material_color_utilities/material_color_utilities.dart'; ^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:201:11: Error: 'Scheme' isn't a type. final Scheme scheme; ^^^^^^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:204:18: Error: Undefined name 'Scheme'. scheme = Scheme.light(seedColor.value); ^^^^^^ ../flutter-sdk/packages/flutter/lib/src/material/color_scheme.dart:207:18: Error: Undefined name 'Scheme'. scheme = Scheme.dark(seedColor.value); ^^^^^^ ../.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'. io.Platform.packageRoot; // ignore: deprecated_member_use ^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Amaterial_color_utilities%2Fmaterial_color_utilities.dart; message=StandardFileSystem only supports file:* and data:* URIs) #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7) #1 asFileUri (package:vm/kernel_front_end.dart:623:37) #2 writeDepfile (package:vm/kernel_front_end.dart:763:21)Flutter doctor -v output
``` [✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-x64, locale en-GB) • Flutter version 2.10.2 at /Users/jimmyff/flutter-sdk • Upstream repository https://github.com/flutter/flutter.git • Framework revision 097d3313d8 (10 days ago), 2022-02-18 19:33:08 -0600 • Engine revision a83ed0e5e3 • Dart version 2.16.1 • DevTools version 2.9.2 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at /Users/jimmyff/Library/Android/sdk • Platform android-31, build-tools 29.0.3 • Java binary at: /Applications/Development/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.1) • Android Studio at /Applications/Development/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) [!] IntelliJ IDEA Ultimate Edition (version 2017.2) • IntelliJ at /Applications/Development/IntelliJ IDEA.app ✗ Flutter plugin version 15.1 - the recommended minimum version is 16.0.0 • Dart plugin version 172.3317.48 • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins [✓] IntelliJ IDEA Ultimate Edition (version EAP IU-172.1909.2) • IntelliJ at /Applications/Development/IntelliJ IDEA 2017.1.2 EAP.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.64.2) • VS Code at /Applications/Development/Visual Studio Code.app/Contents • Flutter extension version 3.34.0 [✓] Connected device (2 available) • James’s iPhone (mobile) • 00008020-001A0D811A78002E • ios • iOS 14.4 18D52 • Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.109 [✓] HTTP Host Availability • All required HTTP hosts are available ```Any insight would be much appreciated! Thanks