2 https://flutter.dev/docs/get-started/install
问题:
1.碰到的 zsh: command not found: 解决方法 在这里
https://www.jianshu.com/p/4ded6dc28eb0
================================================
问题2:VSCode 运行 xcode模拟器/真机 OK ,运行 安卓模拟器报错
Launching lib/main.darton Android SDK built for x86 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> A problem occurred starting process 'command '/Users/apple/Desktop/??flutter/FlutterSDK/flutter/bin/flutter''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help athttps://help.gradle.org
BUILD FAILED in 628ms
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
解决 方法1: 网络重启, 这是因为网络连不上, 不要修改 运行URL ,会显示不出来模拟器
解决方法2:修改网络URL 链接
这是Mac下:https://segmentfault.com/q/1010000016775662
这是win下 : https://blog.csdn.net/qq_34715162/article/details/85158939
========================
网友评论