Flutter Test App找不到pubspec.yaml

时间:2019-03-16 20:46:43

标签: flutter

在遵循Flutter的第一个示例教程的同时运行flutter create testapp会给我Could not find a file named "pubspec.yaml" in "C:\Users\<username>\Desktop",其中<username>是我的用户名。解决方案herehere不起作用,因为我不是用git手动克隆,也不是在Unix上。我正在Windows 10上,flutter --version返回了

fatal: not a git repository (or any of the parent directories): .git
Building flutter tool...
Running pub upgrade...
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (4 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

flutter create testapp给出的完整错误消息

fatal: not a git repository (or any of the parent directories): .git
Building flutter tool...
Running pub upgrade...
Creating project testapp...
  testapp\.gitignore (created)
  testapp\.idea\libraries\Dart_SDK.xml (created)
  testapp\.idea\libraries\Flutter_for_Android.xml (created)
  testapp\.idea\libraries\KotlinJavaRuntime.xml (created)
  testapp\.idea\modules.xml (created)
  testapp\.idea\runConfigurations\main_dart.xml (created)
  testapp\.idea\workspace.xml (created)
  testapp\.metadata (created)
  testapp\android\app\build.gradle (created)
  testapp\android\app\src\main\java\com\example\testapp\MainActivity.java (created)
  testapp\android\build.gradle (created)
  testapp\android\testapp_android.iml (created)
  testapp\android\app\src\debug\AndroidManifest.xml (created)
  testapp\android\app\src\main\AndroidManifest.xml (created)
  testapp\android\app\src\main\res\drawable\launch_background.xml (created)
  testapp\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
  testapp\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
  testapp\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
  testapp\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
  testapp\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
  testapp\android\app\src\main\res\values\styles.xml (created)
  testapp\android\app\src\profile\AndroidManifest.xml (created)
  testapp\android\gradle\wrapper\gradle-wrapper.properties (created)
  testapp\android\gradle.properties (created)
  testapp\android\settings.gradle (created)
  testapp\ios\Runner\AppDelegate.h (created)
  testapp\ios\Runner\AppDelegate.m (created)
  testapp\ios\Runner\main.m (created)
  testapp\ios\Runner.xcodeproj\project.pbxproj (created)
  testapp\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created)
  testapp\ios\Flutter\AppFrameworkInfo.plist (created)
  testapp\ios\Flutter\Debug.xcconfig (created)
  testapp\ios\Flutter\Release.xcconfig (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-1024x1024@1x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@1x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@3x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@1x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@3x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@1x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@3x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@3x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@1x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-83.5x83.5@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created)
  testapp\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created)
  testapp\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@2x.png (created)
  testapp\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@3x.png (created)
  testapp\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created)
  testapp\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
  testapp\ios\Runner\Base.lproj\Main.storyboard (created)
  testapp\ios\Runner\Info.plist (created)
  testapp\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created)
  testapp\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
  testapp\lib\main.dart (created)
  testapp\testapp.iml (created)
  testapp\pubspec.yaml (created)
  testapp\README.md (created)
  testapp\test\widget_test.dart (created)
Could not find a file named "pubspec.yaml" in "C:\Users\arkj7\Desktop".
Running "flutter packages get" in testapp...
pub get failed (66)

0 个答案:

没有答案