Android-Studio-usage、adb、logcat



Android Studio 使用

1. Andrloid mac 下载: ​​https://developer.android.google.cn/studio​

2. Android 快捷键常见mac

  • command + o 搜索全局类Class
  • command + shift + o 搜索文件 file
  • command + F 当前文件内搜索
  • command + R 当前文件内搜索替换
  • command + shift + F 全局搜索方法关键字
  • command + shift + R 全局搜索方法关键字替换

3. mac 安装 adb

  • 安装adb是为了启动logcat
  1. 执行命令brew cask install android-platform-tools, 报错: Error: Unknown command: cask
  • 解决: 切换命令:brew install --cask android-platform-tools

4. Android Studio logcat

  • 创建Android 项目的时候logcat会显示在debug窗口下, 但是flutter项目好像不会显示logcat.

5. Android 学习网站: ​​https://developer.android.google.cn/studio/install.html​