简体   繁体   English

Android Studio Flutter 项目无法识别 GradleException 和 build.gradle 中的属性

[英]Android Studio Flutter project can not recognize GradleException and Properties in build.gradle

I hope there is a solution to this coz Google did not help much Android Studio Flutter project can not recognize GradleException and Properties in build.gradle我希望有一个解决方案,因为谷歌没有太大帮助

Steps to reproduce:重现步骤:

  1. New flutter project in Android studio Android工作室的新flutter项目
  2. Navigate to /android/app/src/build.gradle导航到 /android/app/src/build.gradle
  3. Error reported: Cannot resolve symbol 'GradleException' and Cannot resolve symbol 'Properties'报告错误:无法解析符号“GradleException”和无法解析符号“属性”

在此处输入图像描述

You can juste remove the new in front of Properties and GradleException您可以删除PropertiesGradleException前面的new

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM