1. androidstudio 可以开启simulator,但是无法连接

    1
    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
  2. brew tap caskroom/versions 命令无反应
    因为该命令过时了,使用下面命令代替

1
brew tap homebrew/cask-versions
  1. 环境变量
  2. 1 java
1
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home

3.2 flutter

1
2
export FLUTTER_HOME=/Users/weihh/Library/Flutter/sdk
export PATH=$PATH:$FLUTTER_HOME/bin

3.3 android

1
2
3
export ANDROID_HOME=/Users/weihh/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
  1. androidstudio设置代理之无法关闭代理
1
配置信息保存在/Users/XXX/.gradle/gradle.properties/文件中删除即可
  1. 一直卡在running pod install
    是因为cocoapod没有安装或者没有更新,执行下面命令
1
2
3
4
brew install cocoapods
pod setup
pod repo update
pod update
  1. BottomNavigationBar每个子tab切换时都会重新initState问题解决

    1
    body:IndexStack()
  2. 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
    2
    sudo gem update --system
    gem install cocoapods