android studio导入flutter项目报错:Dart SDK is not configured

在Android studio中导入flutter项目时报错:Dart SDK is not configured,这是因为在android studio里面没有配置Dart SDK的问题,可以通过下面步骤进行配置:

1.打开File =》Setting =》Language & Frameworks => Dart

android studio导入flutter项目报错:Dart SDK is not configured_第1张图片

2.勾选 “enable Dart support for the project”,并且选择Dart SDK path,路径为 D:\install\android\flutter\bin\cache\dart-sdk ,其中D:\install\android\flutter是flutter SDK路径

android studio导入flutter项目报错:Dart SDK is not configured_第2张图片

3. 然后点击确定,重新编译即可

你可能感兴趣的:(android)