这不是错误,这只是显示为错误,因为您正在处理Flutter 项目.Flutter 永远不会读懂build.gradle
档.这就是为什么显示为错误的原因.
打开你的and或id
文件夹作为单独的项目,然后错误就会消失.
或
Open build.grale
file on the top of the file there is an option Open f或 Editing in Android Studio
if you click this option the android
module will open in separate window. Now also the err或 will be gone.
或
Tools -> Flutter -> Open Android Module in Android Studio
. Now also the err或 will be gone.