常见问题

SOBER大约 1 分钟

常见问题

Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

解决方案

  1. 运行 flutter clean 清除缓存(项目根目录运行)
  2. 将你电脑的时区调到你对应的IP,例如你翻墙使用的是美国的IP,那就使用美国的时区
  3. 使用管理员身份重新打开 Android Studio 然后运行 flutter 项目

Android SDK "Android API 29 Platform" is not found on the disk or corrupted

解决方案

点击阅读此博文open in new window

禁用 Hyper-V

  1. 使用管理员身份打开 Power Shell
  2. 输入 DISM /Online /Disable-Feature:Microsoft-Hyper-V
关闭Hyper-V
关闭Hyper-V

flutter The selected directory is not a valid home for Android SDK

解决方案

下载提示中建议的版本安装即可,点击下载open in new window

下载haxm
下载haxm

下载,解压,双击exe文件即可

安装haxm
安装haxm

注意

安装之前关掉 Android Studio 模拟器若之前安装过haxm的话卸载即可重新安装

卸载haxm
卸载haxm