flutter问题记录
androidstudio 可以开启simulator,但是无法连接
1
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
brew tap caskroom/versions 命令无反应
因为该命令过时了,使用下面命令代替
1 | brew tap homebrew/cask-versions |
- 环境变量
- 1 java
1 | export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home |
3.2 flutter
1 | export FLUTTER_HOME=/Users/weihh/Library/Flutter/sdk |
3.3 android
1 | export ANDROID_HOME=/Users/weihh/Library/Android/sdk |
- androidstudio设置代理之无法关闭代理
1 | 配置信息保存在/Users/XXX/.gradle/gradle.properties/文件中删除即可 |
- 一直卡在running pod install
是因为cocoapod没有安装或者没有更新,执行下面命令
1 | brew install cocoapods |
BottomNavigationBar每个子tab切换时都会重新initState问题解决
1
body:IndexStack()
ios 编译出现find_spec_for_exe’: can’t find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.3.0/rubygems.rb:299:inactivate_bin_path
1
2sudo gem update --system
gem install cocoapods