[英]Get error when i open the android folder in flutter project red lines in build.gradle any idea
I am trying to use fire-base when i am make a new project in flutter every things is fine but when i open the android folder in my project i get an error at this line of android>app>build.gradle any idea please当我在 flutter 中创建一个新项目时,我正在尝试使用 fire-base 一切都很好,但是当我在我的项目中打开 android 文件夹时,我在 android>app>build.gradle 的这一行出现错误,请知道
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") throw new GradleException(“未找到颤振 SDK。在 local.properties 文件中使用 flutter.sdk 定义位置。”)
Assuming you have a successful installation of:假设您已成功安装:
flutter doctor
in your terminal flutter doctor
$PATH
(Flutter doctor should tell you)$PATH
上定义了 Flutter sdk (颤振医生应该告诉您) I also found it difficult to open the Android
folder in Android Studio.我还发现很难在 Android Studio 中打开
Android
文件夹。
What worked for me however was:然而,对我有用的是:
I'm not sure if this step is necessary, but I always do it when I have conflicts opening project in either Android Studio or Intellij.我不确定这一步是否必要,但当我在 Android Studio 或 Intellij 中打开项目时遇到冲突时,我总是这样做。
This is basically where it keeps its configuration.这基本上是它保留其配置的地方。
Click on Open an existing Android Studio project单击打开现有的 Android Studio 项目
android
folder from your project android
文件夹 Hope that helped希望有帮助
the following steps might help you.以下步骤可能会对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.