简体   繁体   English

我陷入了创建颤振项目的困境

[英]I got stuck in creating the flutter project

I am using the Android Studio to create a new flutter project, but it just got stuck when creating the project, for hours.我正在使用 Android Studio 创建一个新的 flutter 项目,但是在创建项目时它卡住了几个小时。 I don't know what to do, need help.我不知道该怎么办,需要帮助。 BTW, I am using Mac, there seems no opening with administration mode in it.顺便说一句,我使用的是 Mac,似乎没有打开管理模式。 在此处输入图片说明

在flutter中构建应用程序需要第一次Internet连接,其他方面也可能会影响硬件配置。

  1. Try starting Android Studio in Administrator mode尝试以管理员模式启动 Android Studio

  2. Make sure that you have not ticked the "create project offline checkbox".确保您没有勾选“离线创建项目复选框”。

  3. Keep the "Flutter SDK location" and "Project location" in a local path (eg c:\\users\\xxxxxx)将“Flutter SDK 位置”和“项目位置”保持在本地路径中(例如 c:\\users\\xxxxxx)

I ran into similar problem on my Mac.我在 Mac 上遇到了类似的问题。 The following was my state of my machine at the time of the problem.以下是出现问题时我的机器状态。

  1. I had upgraded to macOS Big Sur.我已经升级到 macOS Big Sur。
  2. My copy of Android Studio was working before the upgrade.在升级之前,我的 Android Studio 副本正在运行。
  3. My copy of flutter was installed using brew before the upgrade.我的 flutter 副本是在升级之前使用 brew 安装的。

When I ran into the problem, after a bit of reading, I uninstalled and reinstalled flutter using brew, and problem went away.当我遇到问题时,经过一些阅读,我使用 brew 卸载并重新安装了 flutter,问题就消失了。 For me, I think there must have some change in directory permission settings that caused Android Studio to get stuck when creating application.对我来说,我认为目录权限设置肯定有一些变化导致Android Studio在创建应用程序时卡住了。

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

相关问题 颤动 - 卡在启动画面 - flutter - got stuck at splash screen Flutter:我在 Flutter 中遇到了一个问题。 我认为问题是不动态适应的卡 - Flutter: I got stuck with a problem in Flutter. I think the problem is the card that does not adapt dynamically 我从朋友那里下载了一个颤振项目,我收到了这个错误 - i downloaded a flutter project from a friend and i got this error 我被困在AsyncTask中的onBackPressed()上 - I got stuck on the onBackPressed() in AsyncTask 我在Flutter中遇到了一个问题:以下断言被抛出构建TextField,它让我感到一个陌生的问题 - I got stuck with a problem in Flutter: The following assertion was thrown building TextField, it flesh me a stranger problem 在eclipse 3.6.1中创建android项目时出现错误 - i got error while creating a android project in eclipse 3.6.1 我在下面的代码中遇到了getAssests() - I got stuck in getAssests() in the below code 当我运行 Flutter 项目时,我的 Ubuntu 系统出现此错误 - When I run Flutter project I got this error my Ubuntu system 当我尝试在我的flutter项目中使用image_picker时,我遇到了与AndroidX的不兼容错误 - When I try to use image_picker in my flutter project I got an incompatibility error with AndroidX 卡在OnPostResume循环中 - Got stuck in a OnPostResume loop
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM