当我尝试运行flutter项目时发生了此错误。
> Configure project :app
Build properties not found for package Android SDK Platform 28
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\Flutter Project\[project_name]\android\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to find target with hash string 'android-28' in: C:\Users\[username]\AppData\Local\Android\Sdk
当我尝试使用Android Studio打开此错误时:
ERROR: Failed to find target with hash string 'android-28' in: C:\Users\chhea\AppData\Local\Android\Sdk
Possible cause: Build properties not found for package Android SDK Platform 28
但是,如果我从android studio创建了android项目,那么它可以正常运行。
我已经准备安装SKD 28,但仍然出错。