Professional Documents
Culture Documents
vibração / vibração
I keep getting "this is taking an unexpectedly long time" message on terminal when i run the "flutter run"
command. Whats your take on this? Nothing is working.
73 3 2 2
zoechi added the waiting for customer response label on 30 Jan 2019
Thanks for your response. When I hook up my mobile device, and run the "flutter run" command, after a few
minutes waiting, I get the message "this is taking an unexpectedly long time" and that's it. It just remains that
way.
15
https://github.com/flutter/flutter/issues/27310 1/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
no-response bot removed the waiting for customer response label on 30 Jan 2019
zoechi added severe: crash waiting for customer response tool labels on 30 Jan 2019
no-response bot removed the waiting for customer response label on 30 Jan 2019
https://github.com/flutter/flutter/issues/27310 2/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
@hamidabdulmalik
Are you saying that it works fine in flutter doctor but will get stuck when flutter run ?
Besides, can you reproduce this issue using latest master?
https://github.com/flutter/flutter/issues/27310 3/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
} else {
_slowWarning = ' ' + _defaultSlowWarning;
}
stdout.write(_slowWarning);
}
}
kangwang1988 added the waiting for customer response label on 31 Jan 2019
@kangwang1988 exactly, at the moment, only "flutter doctor" works. Please, how do I revert to a later
master?
no-response bot removed the waiting for customer response label on 31 Jan 2019
@dnfield
Do you have more context towards AnsiSpinner's timer-callback behavior?
cc @Hixie
https://github.com/flutter/flutter/issues/27310 4/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
I am making a fresh install. Will let you know when I am done, but we need to know why this problem
happens
zoechi added the waiting for customer response label on 31 Jan 2019
@zoechi after fresh installation, even "flutter doctor -v" command stopped working. Just displaying the same
message on the terminal.
no-response bot removed the waiting for customer response label on 31 Jan 2019
@hamidabdulmalik
Paste full result(text instead of screenshot) for flutter -v doctor -v please.
zoechi added the waiting for customer response label on 31 Jan 2019
@kangwang1988
https://github.com/flutter/flutter/issues/27310 5/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
no-response bot removed the waiting for customer response label on 31 Jan 2019
https://github.com/flutter/flutter/issues/27310 6/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
after fresh installation, even "flutter doctor -v" command stopped working. Just displaying the same
message on the terminal.
after fresh installation, even "flutter doctor -v" command stopped working. Just displaying the same
message on the terminal.
Yes, everything seems fine, except I cannot run "flutter run" successfully
anything? anybody?
38 hidden items
Load more…
https://github.com/flutter/flutter/issues/27310 7/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
download gradle 4.10.1 all zip extracted to a more accessible dir e.g ( C:\ )
and now
flutter run/build works
https://github.com/flutter/flutter/issues/27310 8/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
Flutter build/run " licenses - This is taking an unexpectedly long time" #30483
Closed
I had the same problem even in running flutter doctor but it just takes more time and workes after 3-4
minutes later. and none of the mentioned ways couldn't solve my problem.
i had almost the same issue by running flutter build apk --release it was given nothing but when i tried to
simply run flutter build apk i have got the apk-release
In my case the problem is about to be "Android License" because when i running flutter doctor -v
, it showing "Checking Android License is taking unexpected long time".
https://github.com/flutter/flutter/issues/27310 9/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
you can resolve issues related to Android License by running command flutter doctor --android-
licenses
Hi there, after updating Android SDK build tools and restarting PC flutter started working again.
For my side it was about the updating sdk when i downgraded everything and run Flutter clean then Flutter
build everything works perfectly
Try to run it in the command Line not in IDE terminal because After 3 or 4 minutes it'll go throw away the
process
https://github.com/flutter/flutter/issues/27310 10/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/akash/Android
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/akash/Android
• Java binary at: /usr/lib/jvm/java-8-openjdk-amd64/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-2-b11)
• All Android licenses accepted.
https://github.com/flutter/flutter/issues/27310 11/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
[ +515 ms] /home/akash/Android/platform-tools/adb -s f6c2c2929804 shell getprop
[ +110 ms] ro.hardware = qcom
[+1449 ms] Launching lib/main.dart on Redmi Note 4 in debug mode...
[ +48 ms] Initializing gradle...
[ +32 ms] Using gradle from
/home/akash/Documents/testing_stuff/flutter/demo/android/gradlew.
[ +15 ms] executing:
/home/akash/Documents/testing_stuff/flutter/demo/android/gradlew -v
PS: I don't have android studio but android sdk tools as well as gradle are all properly configured as i have
build projects with Ionic and React Native. Trying flutter out but stuck in the very first step.
so i realized that every once in a while you have to delete the ios and android files and rebuild them. You
have to constantly keep those up to date . I created a flutter project when flutter was still in beta and i was
frequently running into very weird issues (one of them was this one).
When i deleted the ios and android files and ran "flutter create . " it solved a lot of my problems . Note that
this will delete all gradle , manifest , plist. .. configs so i would save those . Hope it helps . You can also check
out this link : https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-
outdated
e sim, vou tentar o método que khalithartmann sugeriu .. atualize o flutter sdk, exclua as pastas do Android
do iOS e crie o flutter.
https://github.com/flutter/flutter/issues/27310 12/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
Onde você está executando seu comando? Vou sugerir que você execute seu código na CLI, não no
terminal IDE. Porque parece que seu aplicativo está atualizando seu gradle, vai demorar um pouco
Estou executando o comando no Terminal. Terminal não integrado do código do Visual Studio que estou
usando para desenvolvimento
Recentemente, eu estava sofrendo do mesmo problema, mas agora ele foi resolvido quando atualizei com
o Flutter SDK mais recente e reiniciei meu laptop.
Esse problema ocorre principalmente quando você importa outros projetos, portanto, eles exigem uma
versão diferente do Gradle para criar o apk.
1. Atualizar dart Sdk == atualizar o flutter sdk que deve ser instalado certo?
2. Você tentou executar seu aplicativo por meio de emulador ou dispositivo real?
3. Explique um pouco melhor o que você quer dizer com a versão diferente do Gradle
https://github.com/flutter/flutter/issues/27310 13/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
Quer dizer, se você estiver usando o Gradle 5.3.1 para construir seu projeto e, em seguida, compartilhar
esse arquivo com qualquer outro desenvolvedor. Portanto, ele deve baixar a mesma versão do Gradle 5.3.1
ou superior para trabalhar com o seu código ...
Baixe os arquivos do Gradle aqui https://gradle.org/
Eu entendo que esta pode ser uma resposta simples, mas posso querer tentar.
Eu estava usando um dispositivo Android real para "executar vibração" comando que inicialmente rendeu -
"está demorando muito tempo inesperadamente"
Eu simplesmente encerrei esse processo.
Prosseguiu para desconectar o telefone.
Alterne a porta usb.
Refazer.
Funcionou :)
E como dizemos, "de alguma forma funcionou :)"
2 3
Comigo, parecia que meu telefone redefiniu meus padrões de "transferência de arquivo" para "Somente
carga" e flutter não me avisou sobre isso e não foi capaz de sincronizar os arquivos.
Troquei meu telefone de volta para transferência de arquivos e está bom agora.
https://github.com/flutter/flutter/issues/27310 14/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
Eu tive um problema semelhante, no meu caso, eu tinha uma dependência que exigia o iOS 11 que não
precisava mais e removia do meu pubspec.yaml . Acho que quando fiz isso, meu alvo iOS caiu para iOS 8
em vez de 11, mas devido a uma dependência remanescente que ainda exigia o alvo iOS 11, isso estava
causando a falha na minha compilação.
1 2
4 - flutter clean
5 flutter run
Eu tive um problema semelhante, no meu caso, eu tinha uma dependência que exigia o iOS 11 que
não precisava mais e removia do meu pubspec.yaml . Acho que quando fiz isso, meu alvo iOS caiu
para iOS 8 em vez de 11, mas devido a uma dependência remanescente que ainda exigia o alvo iOS
11, isso estava causando a falha na minha compilação.
https://github.com/flutter/flutter/issues/27310 15/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
Isso funcionou!
Liguei a VPN antes de executar o comando "flutter build apk" e funcionou embora idk por quê.
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/sathwikdoddi/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
https://github.com/flutter/flutter/issues/27310 16/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
• No issues found!
Every time I run a project, It takes "an unexpectedly long time..." and half of the time, I get an error saying
"Could not build the application for the simulator. Error launching application on iPhone 11." The only way to
fix the launch error is by removing the Pods folder from the ios directory and rerunning. But the unexpectedly
long time error is not going away no matter what I try to do.
Here is the could not build error with flutter run -v:
[+1680 ms] Could not build the application for the simulator.
[ ] Error launching application on iPhone 11.
[ +11 ms] "flutter run" took 144,131ms.
[ +14 ms]
#0 throwToolExit
(package:flutter_tools/src/base/common.dart:14:3)
#1 RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:578:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand
https://github.com/flutter/flutter/issues/27310 17/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
(package:flutter_tools/src/runner/flutter_command.dart:844:18)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
#6 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#7 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9 _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
#10 _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
#11 RunCommand.usageValues
(package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 Future._asyncCompleteWithValue.<anonymous closure>
(dart:async/future_impl.dart:567:7)
#19 _rootRun (dart:async/zone.dart:1190:13)
#20 _CustomZone.run (dart:async/zone.dart:1093:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure>
(dart:async/zone.dart:1037:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25 _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:118:13)
#26 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:169:5)
Update your dependencies before running and try running by commenting out dependency_overrides
https://github.com/flutter/flutter/issues/27310 18/19
11/02/2021 "this is taking an unexpectedly long time" · Issue #27310 · flutter/flutter
I have fixed that issue by installing the latest JDK and JRE and added both paths to environment variables. it
fixes my flutter pub get speed but flutter urn and apk build still taking much time.
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
None yet
44 participantes
e outros
https://github.com/flutter/flutter/issues/27310 19/19