Android 颤振用户应运行';弗利特酒吧获得';而不是';pub get';
当我尝试在android studio中打开大部分下载的颤振应用程序时,它总是告诉我“Pub-get”尚未运行,当我按下“get-dependencies”或“upgrade-dependencies”时,它会显示该错误。我已经将android studio、Flatter和dart升级到最新版本 错误:Android 颤振用户应运行';弗利特酒吧获得';而不是';pub get';,android,android-studio,flutter,get,dependencies,Android,Android Studio,Flutter,Get,Dependencies,当我尝试在android studio中打开大部分下载的颤振应用程序时,它总是告诉我“Pub-get”尚未运行,当我按下“get-dependencies”或“upgrade-dependencies”时,它会显示该错误。我已经将android studio、Flatter和dart升级到最新版本 错误: C:\Dart\dart-sdk\bin\pub.bat get Resolving dependencies... Because wisgen depends on flutter_tes
C:\Dart\dart-sdk\bin\pub.bat get
Resolving dependencies...
Because wisgen depends on flutter_test any from sdk which doesn't exist (the Flutter SDK is not
available), version solving failed.
Flutter users should run `flutter pub get` instead of `pub get`.
Process finished with exit code 69
这是该项目的pubspec.yaml
name: wisgen
description: A Wisdom Generator
#for release: flutter build apk --release
#for release: flutter build appbundle --build-number=2
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.4+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
http: ^0.12.0+2
cached_network_image: ^1.1.1
shared_preferences: ^0.5.3+4
share: ^0.6.2+1
flutter_spinkit: "^4.0.0"
flutter_bloc: ^0.21.0
equatable: ^0.6.1
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_launcher_icons: "^0.7.2"
mockito: ^4.1.1
flutter_test:
sdk: flutter
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/ball-col-3.png"
#flutter pub get
#flutter pub pub run flutter_launcher_icons:main
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
assets:
- assets/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
name:wisgen
描述:智慧产生器
#发布:颤振构建apk——发布
#发布:颤振构建appbundle——构建编号=2
#下面定义了应用程序的版本和内部版本号。
#版本号是由点分隔的三个数字,如1.2.43
#后跟可选的内部版本号,以+分隔。
#版本和制造商编号都可能在颤振中被覆盖
#通过分别指定--build name和--build number来生成。
#在Android中,版本名用作版本名,而版本号用作版本代码。
#更多关于Android版本控制的信息,请访问https://developer.android.com/studio/publish/versioning
#在iOS中,生成名称用作CbundleShortVersionString,而生成编号用作CbundLeverVersion。
#阅读有关iOS版本控制的更多信息,请访问
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
版本:1.0.4+1
环境:
sdk:“>=2.1.0进入顶部菜单“工具>颤振>颤振清理”
通常情况下,未设置颤振SDK存在问题(也可能是其他问题)
在我更新了《颤振》之后,我收到了这个问题,我尝试了所有的方法,但没有任何效果
然后删除.package并点击pubspec中的保存,,
像魔咒一样工作进入顶部菜单“工具>颤振>颤振清理”,检查是否有其他错误,如在Android中设置颤振sdkstudio@Nuts这个问题已经解决了,非常感谢