当前位置: 首页 > 工具软件 > flutter_shuqi > 使用案例 >

flutter 运行失败 The SDK directory 'xxxxx' does not exist.

强志学
2023-12-01
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.

   > The SDK directory '/Users/qq1440214507/Downloads/Sdk' does not exist.

错误如上,大概是我创建了flutter项目之后又移动了android sdk的目录,虽然环境变量以及android studio的

相应配置也指向了正确的sdk目录,但是flutter项目本身还需要配置一下。您的项目地址/android/local.properties,

第一行配置正确的sdk地址

sdk.dir=/Users/qq1440214507/Sdk
flutter.sdk=/Users/qq1440214507/flutter/flutter
flutter.buildMode=debug

 类似资料: