We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我全套搞下来用了20+G的空间,MMP的。总的参考:https://zhuanlan.zhihu.com/p/87484273
git init
git clone
--licesns
adb.exe
nox_adb.exe
flutter doctor
flutter 0.0.0 unknown
install X packages
flutter doctor --android-licenses
sdkmanager --update
nox_adb.exe connect 127.0.0.1:62001
flutter run
The text was updated successfully, but these errors were encountered:
No branches or pull requests
2021-2-8 补充
老老实实从git上拉!!!
别下载zip压缩包,没有.git文件,坑的一笔!!!
注意
我全套搞下来用了20+G的空间,MMP的。总的参考:https://zhuanlan.zhihu.com/p/87484273
git init
一下,flutter要求有 .git 文件。但是后续安装依赖会报错,因为你git是自己生成的,所以老老实实git clone
吧--licesns
会报未知参数,这个是最麻烦的,参考这里:https://www.cnblogs.com/yinniora/p/14250226.htmladb.exe
与 夜神模拟器中的adb.exe
以及nox_adb.exe
需要版本一致,不一致的话参考这里 https://www.jianshu.com/p/c183c562c35a详细步骤
flutter doctor
后会报不是一个github项目,不要git init
,虽然能跑,但是有的依赖安装不了,vscode右下角会显示flutter 0.0.0 unknown
flutter doctor
,网速要好,漫长等下后,它会告诉你缺少什么,由于我用 vscode 开发,所以就不管 Android Studio 和 idea 这两个编辑器了,一般会提示我们找不到 Android SDKinstall X packages
(X为此处需要补充的package的数量,结果安装了一大堆东西,据说有的东西不需要但我没研究)flutter doctor
,发现还有错误,此时显示 Android license status unknown. 我按照提示运行flutter doctor --android-licenses
一点屌用没有。最终在 https://www.cnblogs.com/yinniora/p/14250226.html 这里找到解决方案sdkmanager --update
,显示 doneflutter doctor --android-licenses
,一路 yes完成flutter doctor
会发现有关 Android SDK 的配置都好了,接下来就是配置模拟器了nox_adb.exe connect 127.0.0.1:62001
连接时会告诉我 版本不匹配,当时没在意,后来才知道 Android SDK 包内也有个 adb.exe,这个版本和夜神内得版本不一致,把它复制到夜神模拟器安装目录的 bin 目录下,替换,在复制一个改名为 nox_adb.exe 替换原有的 (记得把之前启动的adb和nox_adb进程杀掉)nox_adb.exe connect 127.0.0.1:62001
发现连接成功,vscode右下方也出现连接的设备了flutter run
即可The text was updated successfully, but these errors were encountered: