Flutter初体验

1.installl flutter

  • 中文官网
    选择windows平台,我选的zip的stable版本,解压到硬盘,将flutter/bin目录添加到path,并且添加环境变量
    PUB_HOSTED_URL=https://pub.flutter-io.cn
    FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
    FLUTTER_ROOT=D:\Program Files\flutter  //flutter安装目录
    ANDROID_HOME=D:\Program Files\Android\SDK  //Android sdk安装目录
    
  • 运行flutter docker -v查看当前软件配置是否符合flutter开发的要求,全部调整正确后应显示如下:
      E:\Flutter\flutterTest>flutter doctor -v
    
      [√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.720], locale           zh-CN)
      • Flutter version 1.12.13+hotfix.9 at D:\ProgramFiles\flutter
      • Framework revision f139b11009 (13 days ago), 2020-03-30 13:57:30 -0700
      • Engine revision af51afceb8
      • Dart version 2.7.2
    
      [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
      • Android SDK at D:\ProgramFiles\Android\SDK
      • Android NDK location not configured (optional; useful for native profiling support)
      • Platform android-29, build-tools 29.0.3
      • ANDROID_HOME = D:\ProgramFiles\Android\SDK
      • Java binary at: D:\ProgramFiles\java\bin\java
      • Java version Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
      • All Android licenses accepted.
    
      [!] Android Studio (not installed)
      • Android Studio not found; download from https://developer.android.com/studio/index.html
        (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
    
      [!] Connected device
      ! No devices available
    
      ! Doctor found issues in 2 categories.
    
    应全为对号,我未安装Android studio,而是安装的intellij idea,同样可行,device项需要打开emulator才能显示为对号。
  • 需要处理的问题主要是Android toolchain,需要在sdkmanager中下载,如下图:
    360截图.jpg

    不勾选下面的选项,下载26.1.1这个sdk tools,完成后运行flutter doctor --android-licenses,之后的提示全部选择y即可。
  • idea需要安装两个插件,flutter和dart插件,有时候会搜索不到插件可以直接到官网下载然后本地安装,flutter插件 dart插件;如果使用的是vscode则到插件栏中下载flutter插件即可,此插件自动关联dart插件。

2.create flutter

  • 使用命令或使用idea生成一个新的flutter项目flutter create flt1, 运行flutter pub get命令将其中使用的库下载下来(有点像npm),如果下载不了则是上面的环境变量未设置正确。
  • 运行flutter clean清除之前运行的缓存,再运行flutter emulators --launch 虚拟机名称先将emulator运行起来,再运行命令flutter run -v,如果遇到长时间没有变化则应该是gradle的库下载地址有问题,可以换成国内的镜像地址,将\flutter\packages\flutter_tools\gradle下的flutter.gradle文件依赖地址替换掉,如图:
    360截图

    生成的Android项目内的gradle依赖地址也需要替换。

3.以下是我在vscode内运行的结果,使用idea的运行未成功,命令行没问题:

E:\Flutter\flt0>flutter clean
Deleting build...                                                  709ms
Deleting .dart_tool...                                               3ms

E:\Flutter\flt0>flutter emulators --launch Pixel_3a_XL_API_29

E:\Flutter\flt0>flutter run -v
[  +51 ms] executing: [D:\ProgramFiles\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +122 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +4 ms] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[   +1 ms] executing: [D:\ProgramFiles\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +76 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[  +17 ms] v1.12.13+hotfix.9-0-gf139b1100
[  +18 ms] executing: [D:\ProgramFiles\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +108 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[   +1 ms] executing: [D:\ProgramFiles\flutter\] git ls-remote --get-url origin
[  +78 ms] Exit code 0 from: git ls-remote --get-url origin
[  +10 ms] https://github.com/flutter/flutter.git
[ +149 ms] executing: [D:\ProgramFiles\flutter\] git rev-parse --abbrev-ref HEAD
[  +67 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +228 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe devices -l
[  +34 ms] Exit code 0 from: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe devices -l
[   +1 ms] List of devices attached
           emulator-5554          device product:sdk_phone_x86_64 model:Android_SDK_built_for_x86_64 device:generic_x86_64 transport_id:3
[  +44 ms] D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +111 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +9 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +32 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +8 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +40 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +323 ms] Generating E:\Flutter\flt0\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +123 ms] ro.hardware = ranchu
[ +444 ms] Using hardware rendering with device Android SDK built for x86 64. If you get graphics artifacts, consider enabling software rendering with
                    "--enable-software-rendering".
[  +38 ms] Launching lib\main.dart on Android SDK built for x86 64 in debug mode...
[  +46 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +108 ms] Exit code 0 from: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           04-12 13:07:47.521 W/android.os.Debug( 1829): failed to get memory consumption info: -1
[  +15 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe version
[  +36 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 logcat -v time -T 04-12 13:07:47.521
[  +54 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as D:\ProgramFiles\Android\SDK\platform-tools\adb.exe
[  +22 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe start-server
[  +98 ms] Building APK
[  +60 ms] Running Gradle task 'assembleDebug'...
[  +28 ms] gradle.properties already sets `android.enableR8`
[  +11 ms] Using gradle from E:\Flutter\flt0\android\gradlew.bat.
[  +69 ms] executing: [E:\Flutter\flt0\android\] E:\Flutter\flt0\android\gradlew.bat -Pverbose=true -Ptarget=E:\Flutter\flt0\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x64 assembleDebug
[+4919 ms] > Task :app:compileFlutterBuildDebug
[   +2 ms] [  +44 ms] executing: [D:\ProgramFiles\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +139 ms] [ +116 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +99 ms] [   +2 ms] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[  +70 ms] [        ] executing: [D:\ProgramFiles\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +80 ms] [  +62 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +3 ms] [        ] v1.12.13+hotfix.9-0-gf139b1100
[  +63 ms] [  +13 ms] executing: [D:\ProgramFiles\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[   +2 ms] [  +53 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +2 ms] [        ] origin/stable
[  +63 ms] [        ] executing: [D:\ProgramFiles\flutter\] git ls-remote --get-url origin
[  +66 ms] [  +47 ms] Exit code 0 from: git ls-remote --get-url origin
[  +60 ms] [        ] https://github.com/flutter/flutter.git
[   +5 ms] [ +118 ms] executing: [D:\ProgramFiles\flutter\] git rev-parse --abbrev-ref HEAD
[   +1 ms] [  +50 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[   +6 ms] [  +39 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +61 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +56 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +4 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +71 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [ +170 ms] Initializing file store
[   +1 ms] [  +33 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +30 ms] D:\ProgramFiles\flutter\bin\cache\dart-sdk\bin\dart.exe
D:\ProgramFiles\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
D:\ProgramFiles\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false        
-Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts     
--track-widget-creation --no-link-platform --packages E:\Flutter\flt0\.packages --output-dill
E:\Flutter\flt0\.dart_tool\flutter_build\d79f3bddf59a7d6735a0aeb80fdc56d5\app.dill --depfile
E:\Flutter\flt0\.dart_tool\flutter_build\d79f3bddf59a7d6735a0aeb80fdc56d5\kernel_snapshot.d package:flt0/main.dart
[+11185 ms] [+12321 ms] kernel_snapshot: Complete
[+1899 ms] [+1920 ms] debug_android_application: Starting due to {}
[ +300 ms] [ +235 ms] debug_android_application: Complete
[ +901 ms] [ +984 ms] Persisting file store
[  +99 ms] [  +22 ms] Done persisting file store
[   +1 ms] [   +7 ms] build succeeded.
[        ] [  +32 ms] "flutter assemble" took 15,847ms.
[ +330 ms] > Task :app:packLibsflutterBuildDebug
[   +9 ms] > Task :app:preBuild UP-TO-DATE
[  +31 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +2 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +3 ms] > Task :app:checkDebugManifest
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[   +3 ms] > Task :app:generateDebugBuildConfig
[  +34 ms] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[  +80 ms] > Task :app:mergeDebugShaders
[   +1 ms] > Task :app:compileDebugShaders
[        ] > Task :app:generateDebugAssets
[        ] > Task :app:mergeDebugAssets
[ +636 ms] > Task :app:copyFlutterAssetsDebug
[   +3 ms] > Task :app:mainApkListPersistenceDebug
[ +141 ms] > Task :app:generateDebugResValues
[  +52 ms] > Task :app:generateDebugResources
[+1072 ms] > Task :app:createDebugCompatibleScreenManifests
[ +354 ms] > Task :app:processDebugManifest
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +361 ms] > Task :app:checkDebugDuplicateClasses
[ +274 ms] > Task :app:desugarDebugFileDependencies
[ +216 ms] > Task :app:validateSigningDebug
[ +542 ms] > Task :app:signingConfigWriterDebug
[  +27 ms] > Task :app:mergeDebugResources
[+1275 ms] > Task :app:processDebugResources
[+3235 ms] > Task :app:compileDebugKotlin
[ +118 ms] > Task :app:mergeExtDexDebug
[ +141 ms] > Task :app:javaPreCompileDebug
[+1398 ms] > Task :app:compileDebugJavaWithJavac
[ +607 ms] > Task :app:compileDebugSources
[ +667 ms] > Task :app:transformClassesWithDexBuilderForDebug
[ +342 ms] > Task :app:mergeDebugJniLibFolders
[ +460 ms] > Task :app:mergeDebugJavaResource
[ +362 ms] > Task :app:mergeDexDebug
[+1000 ms] > Task :app:mergeDebugNativeLibs
[   +1 ms] Unable to strip library 'E:\Flutter\flt0\build\app\intermediates\merged_native_libs\debug\out\lib\x86\libflutter.so' due to missing strip tool for ABI 'X86'.
Packaging it as is.
[  +98 ms] Unable to strip library 'E:\Flutter\flt0\build\app\intermediates\merged_native_libs\debug\out\lib\x86_64\libflutter.so' due to missing strip tool for ABI
'X86_64'. Packaging it as is.
[ +309 ms] > Task :app:stripDebugDebugSymbols
[   +2 ms] Compatible side by side NDK version was not found.
[+4342 ms] > Task :app:packageDebug
[   +1 ms] > Task :app:assembleDebug
[  +26 ms] BUILD SUCCESSFUL in 38s
[   +1 ms] 30 actionable tasks: 29 executed, 1 up-to-date
[ +353 ms] Running Gradle task 'assembleDebug'... (completed in 39.2s)
[ +168 ms] calculateSha: LocalDirectory: 'E:\Flutter\flt0\build\app\outputs\apk'/app.apk
[  +75 ms] calculateSha: reading file took 73us
[ +663 ms] calculateSha: computing sha took 662us
[   +8 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[  +41 ms] executing: D:\ProgramFiles\Android\SDK\build-tools\29.0.3\aapt dump xmltree E:\Flutter\flt0\build\app\outputs\apk\app.apk AndroidManifest.xml
[  +72 ms] Exit code 0 from: D:\ProgramFiles\Android\SDK\build-tools\29.0.3\aapt dump xmltree E:\Flutter\flt0\build\app\outputs\apk\app.apk AndroidManifest.xml
[   +6 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.flt0" (Raw: "com.example.flt0")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="flt0" (Raw: "flt0")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.flt0.MainActivity" (Raw: "com.example.flt0.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +19 ms] Stopping app 'app.apk' on Android SDK built for x86 64.
[  +28 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.example.flt0
[ +161 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.example.flt0
[  +77 ms] package:com.example.flt0
[   +4 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell cat /data/local/tmp/sky.com.example.flt0.sha1
[  +57 ms] bf47c26759ac28436d90a92ad2532406679aad90
[   +2 ms] Installing APK.
[   +4 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe version
[  +25 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as D:\ProgramFiles\Android\SDK\platform-tools\adb.exe
[  +15 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe start-server
[  +62 ms] Installing build\app\outputs\apk\app.apk...
[  +21 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 install -t -r E:\Flutter\flt0\build\app\outputs\apk\app.apk
[+2025 ms] Performing Streamed Install
                    Success
[   +1 ms] Installing build\app\outputs\apk\app.apk... (completed in 2.0s)
[   +9 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell echo -n ad1bc95aa979fd0bd1c217725ac68cc1fb855428 >
/data/local/tmp/sky.com.example.flt0.sha1
[ +150 ms] Android SDK built for x86 64 startApp
[   +5 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.flt0/com.example.flt0.MainActivity
[ +488 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.flt0/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[ +464 ms] D/FlutterActivity( 3390): Using the launch theme as normal theme.
[   +5 ms] D/FlutterActivityAndFragmentDelegate( 3390): Setting up FlutterEngine.
[   +1 ms] D/FlutterActivityAndFragmentDelegate( 3390): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
[+1170 ms] D/FlutterActivityAndFragmentDelegate( 3390): Attaching FlutterEngine to the Activity that owns this Fragment.
[ +100 ms] D/FlutterView( 3390): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@3609f2e
[  +33 ms] D/FlutterActivityAndFragmentDelegate( 3390): Executing Dart entrypoint: main, and sending initial route: /
[  +87 ms] Observatory URL on device: http://127.0.0.1:46797/b8z_yhdNKbA=/
[   +4 ms] executing: D:\ProgramFiles\Android\SDK\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:46797
[ +129 ms] 53138
[  +22 ms] Forwarded host port 53138 to device port 46797 for Observatory
[  +43 ms] Connecting to service protocol: http://127.0.0.1:53138/b8z_yhdNKbA=/
[ +842 ms] Successfully connected to service protocol: http://127.0.0.1:53138/b8z_yhdNKbA=/
[   +9 ms] Sending to VM service: getVM({})
[  +40 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Virtual CPU, operatingSystem: android, targetCPU: x64, version: 2.7.2 (Mon Mar 23 22:11:27 2020
+0100) on "android_x64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 3390, startTime: 158669...
[  +43 ms] Sending to VM service: getIsolate({isolateId: isolates/2879932248149975})
[  +40 ms] Sending to VM service: _flutter.listViews({})
[  +17 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7ef9d0163f20, isolate: {type: @Isolate, fixedId: true, id:
isolates/2879932248149975, name: main.dart$main-2879932248149975, number: 2879932248149975}}]}
[  +35 ms] DevFS: Creating new filesystem on the device (null)
[  +37 ms] Sending to VM service: _createDevFS({fsName: flt0})
[  +44 ms] Result: {type: Isolate, id: isolates/2879932248149975, name: main, number: 2879932248149975, _originNumber: 2879932248149975, startTime: 1586696915758,       
_heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis...
[  +65 ms] Result: {type: FileSystem, name: flt0, uri: file:///data/user/0/com.example.flt0/code_cache/flt0OCZCSW/flt0/}
[   +5 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.flt0/code_cache/flt0OCZCSW/flt0/)
[   +5 ms] Updating assets
[ +248 ms] Syncing files to device Android SDK built for x86 64...
[   +6 ms] Scanning asset files
[  +47 ms] <- reset
[   +1 ms] Compiling dart to kernel with 0 updated files
[  +26 ms] D:\ProgramFiles\flutter\bin\cache\dart-sdk\bin\dart.exe D:\ProgramFiles\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot
--sdk-root D:\ProgramFiles\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true       
--output-dill C:\Users\ADMINI~1\AppData\Local\Temp\flutter_tool.9b916826-7cbe-11ea-ae93-001e8cf62068\app.dill --packages E:\Flutter\flt0\.packages
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts     
--track-widget-creation --filesystem-scheme org-dartlang-root
[  +62 ms] D/EGL_emulation( 3390): eglMakeCurrent: 0x7ef9408637c0: ver 2 0 (tinfo 0x7ef940818f20)
[   +1 ms] D/eglCodecCommon( 3390): setVertexArrayObject: set vao to 0 (0) 1 0
[   +6 ms] <- compile package:flt0/main.dart
[+11839 ms] Updating files
[ +360 ms] DevFS: Sync finished
[   +2 ms] Syncing files to device Android SDK built for x86 64... (completed in 12,351ms, longer than expected)
[  +52 ms] Synced 0.9MB.
[   +7 ms] Sending to VM service: _flutter.listViews({})
[  +10 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7ef9d0163f20, isolate: {type: @Isolate, fixedId: true, id:
isolates/2879932248149975, name: main.dart$main-2879932248149975, number: 2879932248149975}}]}
[  +36 ms] <- accept
[   +3 ms] Connected to _flutterView/0x7ef9d0163f20.
[   +5 ms] �🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[   +3 ms] An Observatory debugger and profiler on Android SDK built for x86 64 is available at: http://127.0.0.1:53138/b8z_yhdNKbA=/
[  +43 ms] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,839评论 6 482
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,543评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 153,116评论 0 344
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,371评论 1 279
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,384评论 5 374
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,111评论 1 285
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,416评论 3 400
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,053评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,558评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,007评论 2 325
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,117评论 1 334
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,756评论 4 324
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,324评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,315评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,539评论 1 262
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,578评论 2 355
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,877评论 2 345

推荐阅读更多精彩内容