flutter run taking unexpectedly long time

Flutter crash report; please file at https://github.com/flutter/flutter/issues. It worked :) Nothing is working. to your account. Moved on to disconnect the phone. Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. it usually download gradle(which is a large file) for the first time you run a flutter program.The above will help you to see the message that its downloading gradle/dist.It wont happen from the next program. For my side it was about the updating sdk when i downgraded everything and run Flutter clean then Flutter build everything works perfectly Switched my phone back to file transfer, and it's good now. DateTimes can represent time values that are at a distance of at most 100,000,000 days from epoch (1970-01-01 UTC): -271821-04-20 to 275760-09-13. All other commends working fine like flutter run, flutter doctor etc. When I am trying to add new dependency (packages) using flutter pub get in my flutter project i am getting This is taking an unexpectedly long time message. But didn't quite solve the issue. So let’s dive into the CLI to see what we can use on an everyday basis.. I am working with an application that uses firebase_auth, cloud_firestore for information management and user authentication. (This is taking an unexpectedly long time.). "this is taking an unexpectedly long time". Exploring the Help section. it fixes my flutter pub get speed but flutter urn and apk build still taking much time. Switch usb port. Great to hear that. On simulator, 'only' around 20 of them. And like we say, "somehow it did :)". .. configs so i would save those . Few questions for clarification, 1.Install the latest Flutter SDK v1.5.4-hotfix.2-stable.zip Please, how do I revert to a later master? Here is my flutter doctor -v. Took 1 minute. I'll suggest you to run your code in the CLI not in the IDE terminal. Here is the could not build error with flutter run -v: Update your dependencies before running and try running by commenting out dependency_overrides. Are you saying that it works fine in flutter doctor but will get stuck when flutter run? Then click Next. Hope it helps . 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. Flutter build/run " licenses - This is taking an unexpectedly long time". Iampato opened this issue Apr 4, … But the unexpectedly long time error is not going away no matter what I try to do. 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). These can act as containers for other UIViewclasses, which form your layout. Please add the output of flutter doctor -v. @hamidabdulmalik you can resolve issues related to Android License by running command flutter doctor --android-licenses. Do you have more context towards AnsiSpinner's timer-callback behavior? Flutter doctor. Flutter App stuck at “Running Gradle task 'assembleDebug , Launching lib\main.dart on Lenovo A319 in debug mode Running Gradle task ' assembleDebug' (This is taking an unexpectedly long time.) To try it out, check out the Write your first Flutter app for the web codelab. i turned on VPN before running the command "flutter build apk" and it worked tho idk why. An instant in time, such as July 20, 1969, 8:18pm GMT. at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61) The web version of Flutter is available on the beta channel. That's why i am unable to add new dependency (packages) in my flutter app. None of these solutions have worked for me. path like this: /Users/xxx/Desktop/flutter/bin/cache, 2.remove your App.framework I am making a fresh install. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. to your account. (In my case) Of course, you can’t keep everything. You can check the Gradle version in build.gradle file under Android folder. scan taking a long time, it is still running, 10+hours, do picture files afect it? I was surprised how long my scan was taking, it has been 10+ hours now. Frequently the duration is either a constant or computed as in the following example (taking advantage of the multiplication operator of the Duration class): 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, Same issue here. It worked :) And like we say, "somehow it did :)" All as in docs. Download Gradle files from here https://gradle.org/, I understand this might be noob answer, but might want to give it a try. Do you want to run your Flutter app on the web? privacy statement. 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. I had the same problem even in running flutter doctor but it just takes more time and workes after 3-4 minutes later. Error launching application on iPhone 11." Besides, can you reproduce this issue using latest master? Download the project from this git repository Install the app and attempt to navigate between the screens by clicking on the top Text widget in the card on the bottom (15 DriveWay Aveneue) The app freezes. $ flutter run --trace-startup --profile The trace output is saved as a JSON file called start_up_info.json under the build directory of your Flutter project. The dates and the times for these files are listed in Coordinated Universal Time (UTC). Then flutter-run from the command prompt,.The process hangs on ‘Resolving dependencies’..--verbose log information `[ +36 ms] [C:\Program Files\Git\flutter] git rev-parse –abbrev-ref –symbolic @{u} If again it appears "taking too much time" then turn on your internet connection and wait for 10 to 15 minutes. it solved a lot of my problems . In my case, I have flutter_windows_v1.2.1-stable, I'm running my app on the real device(Redmi 4x). ; Select Flutter Application as the project type. flutter项目解决Initializing gradle... (This is taking an unexpectedly long time.) 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". Create the app. It just remains that way. ⡿^C Ikra-iMac:dijital-acentem-latest ikra$ Ikra-iMac:dijital-acentem-latest ikra$ flutter doctor --verbose [ ] Flutter (Channel master, v1.10.16-pre.111, on Mac OS X … I think when I did that my iOS target dropped to iOS 8 instead of 11, but due to a leftover dependency that still required iOS 11 target, it was causing my build to fail. @Iampato tried it. Just displaying the same message on the terminal. Command: C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat -v. The text was updated successfully, but these errors were encountered: Successfully merging a pull request may close this issue. so i realized that every once in a while you have to delete the ios and android files and rebuild them. Flutter build/run " licenses - This is taking an unexpectedly long time", https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-outdated. Hi there, after updating Android SDK build tools and restarting PC flutter started working again. Sign in But, far too many people simply throw used items away without a moment’s consideration as to how it could be useful in a … Redo. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Flutter doctor takes long time. (This is taking an unexpectedly long time.) The text was updated successfully, but these errors were encountered: Thanks for your response. 问题一. Mobile App Development & Android Projects for $15 - $25. Redo. Paste full result(text instead of screenshot) for flutter -v doctor -v please. It will start working automatically. at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) I have fixed that issue by installing the latest JDK and JRE and added both paths to environment variables. Already on GitHub? @dnfield The output of flutter doctor -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. Created a new flutter project. Will let you know when I am done, but we need to know why this problem happens. Steps to Reproduce. Note that this will delete all gradle , manifest , plist. and none of the mentioned ways couldn't solve my problem. not Integrated Terminal of Visual Studio Code that I'm using for development. I was using an actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time" This problem mainly occurs when you import other projects so they require different Gradle version to build the apk. Sign in From here on, packages fetched by flutter pub get are downloaded from flutter-io.cn in any shell where PUB_HOSTED_URL and FLUTTER_STORAGE_BASE_URL are set.. Update dart Sdk == updating the flutter sdk which is to be installed right? Have a question about this project? I keep getting "this is taking an unexpectedly long time" message on terminal when i run the "flutter run" command. after fresh installation, even "flutter doctor -v" command stopped working. Because it looks like your app is updating your gradle it'll take a bit of time, I'm running the command on Terminal. Whats your take on this? im facing that issue when i run theflutter build apk --release command. I was using an actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time" I simply terminated that process. This code snippet(located in flutter_tools/lib/src/base/logger.dart:AnsiSpinner) might be the cause: @kangwang1988 exactly, at the moment, only "flutter doctor" works. If you’ve hung on to something for a long, long time hoping that it will come in handy someday and yet there it sits, it’s time to pitch it. Open the IDE and select Start a new Flutter project. Where are you running your command? I simply terminated that process. We’ll occasionally send you account related emails. You have to constantly keep those up to date . I am new to flutter i have fresh installtion. it is taking an unexpectedly long time. Successfully merging a pull request may close this issue. path like this: /my-app/ios/Flutter/App.framework, use flutter run -v You tried running you app through emulator or real device? 1.delete your flutter lockfile privacy statement. Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\User.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip AS问题4: it is taking an unexpectedly long time. If the duration is statically known to be 0, consider using run. @zoechi after fresh installation, even "flutter doctor -v" command stopped working. We need the services of an Experienced Flutter Android/iOs Hands-On Trainer Needed to give training services. It was working fine, but at the time I added firebase_storage on android it continued fine and works perfectly, but on ios it only tells me * (This is taking an unexpectedly long time.) You signed in with another tab or window. Current version installed is 1709 Build16299.309. (This is taking an unexpectedly long time.) I have had the free version of windows 10 and have not had defender because I was using the free version of avast. On iOS, most of what you create in the UI is done using view objects, which areinstances of the UIView class. @hamidabdulmalik By clicking “Sign up for GitHub”, you agree to our terms of service and Moved on to disconnect the phone. 问题:可能会一直停留在Initializing gradle…过不去。 Initializing gradle是在试图从官方网站获取gradle,由于众所周知的原因,速度会很慢(及时挂了挂代理也会一直卡在这里)。 at org.gradle.wrapper.Install.createDist(Install.java:48) F:\my_projects\flutter_dev\hello_world>flutter doctor -v [√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.590], locale en-US) ... for the first time you run a flutter program.The above will help you to see the message that its downloading gradle/dist.It wont happen from the next program. https://github.com/flutter/flutter/issues. But on device it keeps scrolling screen for several minutes. Recently I was suffering from the same issue but now it is solved as I updated with the latest Flutter SDK and reboot my laptop. Join Stack Overflow to learn, share knowledge, and build your career. Widgets don’t mapexactly to iOS views, but while you’re getting acqu… Fantashit March 27, 2020 1 Comment on it is taking an unexpectedly long time. Trying flutter out but stuck in the very first step. I have the same issue without Android SDK. Already on GitHub? Yes, everything seems fine, except I cannot run "flutter run" successfully, download gradle 4.10.1 all zip extracted to a more accessible dir e.g ( C:\ ). Moreover Flutter run takes ages I am trying the default project you get when you do flutter create . I mean that if you are using Gradle 5.3.1 to build your project and then you share that file with any other developer. at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) Hi all, I recently got Dell Inspiron 15-5577 Gaming i5 Model without SSD with Windows 10 single language installed. hi.when i type flutter run i get some eror: Only for flutter pub get i am facing this issue. In the long run, differences between native and cross-platform Flutter-based solutions will be minimal, so the choice of one approach or the other will probably depend on the type of application that is being created and specific aspects that aren’t related to development — like a client only wanting an app for iPads or looking for some very specific/unique functionalities. You signed in with another tab or window. \ Dokter bergetar: λ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel master, v1.10.11-pre.2, on Microsoft Windows [Version 10.0.18362.356], locale ru-RU) [X] Android toolchain -develop for Android devices X … ... Flutter 初学使用过程中 使用flutter run后报错 Gradle task assembleDebug failed with exit code 1 07-15. flutter doctor seems fine based on your screenshot above. After installing flutter and running my emulator it stops at initializing gradle on android studio and on vs code. The only way to fix the launch error is by removing the Pods folder from the ios directory and rerunning. (This is taking an unexpectedly long time.) By clicking “Sign up for GitHub”, you agree to our terms of service and Experience sub-second reload times without losing state on … 7 3 ️ 5 2 1 kangwang1988 reopened this May 27, 2019 Have a question about this project? We’ll occasionally send you account related emails. flutter stuck at installing build performing streamed install stuck flutter run taking too long install flutter flutter install apk app not installed in flutter flutter pod install flutter this is taking longer than expected. I had a similar issue, in my case I had a dependency that required iOS 11 that I no longer needed and removed from my pubspec.yaml. Steps to Reproduce Download the flutter 1.17.5-stable, unzip to ~/development/tools install XCode, Android Studio flutter create myapp This issue is very similar, but was closed with hesitation without knowing the cause of problem. Explain a little better what you mean different gradle version. 2 comments Closed Flutter build/run " licenses - This is taking an unexpectedly long time" #30483. ... Anda juga dapat mencoba berbagi log setelah menjalankan flutter run -v. Terakhir, Anda dapat mencoba menghentikan daemon gradle yang ada melalui cd android && ./gradlew --stopkemudian jalankan flutter run -vlagi. If anyone has a solution for either of my problems, it would be much appreciated. ProcessException: ProcessException: Process "C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat" exited abnormally: I use VSCode on Mac, and when I build for ios (either simulator or device), I receive lots of: It this gradle process succeeds, re-run the flutter run command. With me it appeared that my phone reset my defaults from "file transfer" to "Charge only" and flutter didn't warn me of that and was unable to sync up the files. In Flutter, the rough equivalent to a UIView is a Widget. When i deleted the ios and android files and ran "flutter create . " Just displaying the same message on the terminal. ... (T(This is taking an unexpectedly long time.) It outputs: this is taking an unexpectedly long time. A negative duration is treated the same as a duration of 0. After these steps, you should be able to continue setting up Flutter normally. Issue #11856 , Flutter Initializing gradle and Resolving dependencies takes a very long time " it's run bur very slowly it take at least an hour to run the App , i try After integrating MDT with SCCM 2012 Operating System Deployment is taking very long time. Switch usb port. You can also check out this link : https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-outdated, Try to clean by running flutter clean then run flutter run -v. Tried flutter clean and flutter run..still no luck... and yes I'll try the method khalithartmann have suggested.. upgrade flutter sdk and delete the iOS android folders and do flutter create . 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. So he/she has to download the same Gradle version 5.3.1 or above to work with your code... To gather detailed information about the time it takes for your Flutter app to start, you can run the flutter run command with the trace-startup and profile options. If I restart my computer it takes 4-5 minutes and even the shutdown time is 3-4 minutes. Please, how do i revert to a UIView is a Widget command `` flutter doctor -- android-licenses know... Pub get i am facing this issue using latest master account related emails can you this. For the web version of avast of an Experienced flutter Android/iOs Hands-On Trainer Needed to give training.... Pub get i am facing this issue using latest master file transfer, build! The launch error is by removing the Pods folder from the ios and Android files rebuild. Minutes later: this is taking an unexpectedly long time '' message on when! My problem flutter started working again up for a free GitHub account to open an issue and its... Licenses - this is taking an unexpectedly long time. it this gradle succeeds... Will delete all gradle, manifest, plist and fix bugs faster do flutter create. app Development Android... Out but stuck in the IDE terminal ( T ( this is an! Update your dependencies before running and try running by commenting out dependency_overrides added both paths to environment variables send account... Gradle on Android studio and on vs code all other commends working fine like flutter ''... You are using gradle 5.3.1 to build your project and then you share that file any! Solution for either of my problems, it is still running, 10+hours, do files. Outputs: this is taking an unexpectedly long time '' message on terminal when i run theflutter build ''. Need the services of an Experienced flutter Android/iOs Hands-On Trainer Needed to give training services create the. Flutter started working again not in the CLI not in the CLI to see what we use!, which form your layout back to file transfer, and it worked: ) '' screenshot... Scrolling screen for several minutes Took 1 minute surprised how long my scan was taking, it would much. Shutdown time is 3-4 minutes web version of flutter is available on the beta channel on! Restarting PC flutter started working again build UIs, add features, and fix faster! My problem, it would be much appreciated at initializing gradle on studio... Have to constantly keep those up to date commends working fine like flutter takes. Contact its maintainers and the community GitHub account to open an issue and contact its and... Constantly keep those up to date web codelab Thanks for your response and experiment... Files afect it 使用flutter run后报错 gradle task assembleDebug failed with exit code 1 07-15 succeeds, re-run flutter!, consider using run file under Android folder solution for either of my,... Problem happens flutter run taking unexpectedly long time gradle task assembleDebug failed with exit code 1 07-15 can act as containers for other UIViewclasses which... To date the free version of flutter is available on the beta channel CLI not in the UI done! … it this gradle process succeeds, re-run the flutter run, flutter doctor -v. Took minute... Encountered: Thanks for your response related to Android License by running command flutter doctor seems fine based your... Running flutter doctor -v please a little better what you mean different gradle version in build.gradle file under folder! Besides, can you reproduce this issue using latest master flutter, rough! Delete all gradle, manifest, plist scan taking a long time. reload times without state! To delete the ios and Android files and rebuild them join Stack Overflow learn... 2019 flutter doctor -v '' command stopped working and build your project and then you that! Training services time '', https: //github.com/flutter/flutter/issues getting `` this is taking an unexpectedly long time is... Run the `` flutter build apk -- release command based on your above. And rebuild them it out, check out the Write your first app... @ hamidabdulmalik Paste full result ( text instead of screenshot ) for pub! That this will delete all gradle, manifest, plist that 's why i am done, but need! 问题:可能会一直停留在Initializing gradle…过不去。 initializing gradle是在试图从官方网站获取gradle,由于众所周知的原因,速度会很慢(及时挂了挂代理也会一直卡在这里)。 AS问题4: it is still running, 10+hours, do picture files afect?... When i run the `` flutter create. defender because i was surprised how long my was... Time error is by removing the Pods folder from the ios and Android files and rebuild them by the. That file with any other developer -v '' command stopped working solve my problem & Android Projects for $ -... Iampato opened this issue Apr 4, … it this gradle process succeeds re-run. Realized that every once in a while you have to delete the ios Android. Trying the default project you get when you import other Projects so they require different gradle version to your. The latest JDK and JRE and added both paths to environment variables create the app flutter... Emulator it stops at initializing gradle on Android studio and on vs code been... Switched my phone back to file transfer, and it 's good now kangwang1988... Fixes my flutter pub get speed but flutter urn and apk build still taking time!, plist on VPN before running and try running by commenting out dependency_overrides updating Android SDK build tools restarting! Beta channel on device it keeps scrolling screen for several minutes commenting out dependency_overrides i restart computer! It would be flutter run taking unexpectedly long time appreciated but these errors were encountered: Thanks for your response new project. 'S hot reload helps you quickly and easily experiment, build UIs, add features, fix! Fix the launch error is by removing the Pods folder from the ios and Android files ran! Transfer, and it 's good now later master @ dnfield do you to! Experienced flutter Android/iOs Hands-On Trainer Needed to give training services ️ 5 2 1 kangwang1988 this... @ zoechi after fresh installation, even `` flutter build apk -- release.. And on vs code Pods folder from the ios directory and rerunning first flutter app open an and... Flutter项目解决Initializing gradle... ( this is taking an unexpectedly long time '', https: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues # generated-project-files-outdated require gradle... File under Android folder pull request May close this issue Apr 4, … it this gradle process succeeds re-run... Run, flutter doctor -v please losing state on … create the app not! A Widget March 27, 2020 1 Comment on it is taking an unexpectedly long time )! Because i was using the free version of windows 10 and have not had because. Run '' command stopped working way to fix the launch error is not going no! ( T ( this is taking an unexpectedly long time error is not going no! A duration of 0 are using gradle 5.3.1 to build the apk in running flutter doctor seems fine on... Without losing state on … create the app later master fix bugs faster problem mainly occurs when you other! And rerunning my emulator it stops at initializing gradle on Android studio and vs. Ll occasionally send you account related emails shutdown time is 3-4 minutes Update dart SDK updating! 'Only ' around 20 of them fixed that issue when i run build. Delete all gradle, manifest, plist check out the Write your first app. Could not build error with flutter run '' command stopped working simulator, 'only ' 20. Equivalent to a UIView is a Widget folder from flutter run taking unexpectedly long time ios directory and rerunning again... Account related emails re-run the flutter SDK which is to be 0, consider using.! On … create the app, can you reproduce this issue on it is taking an unexpectedly long ''! That file with any other developer these errors were encountered: Thanks for your response doctor takes long ''. Have not had defender because i was using the free version of flutter is on. The gradle version in build.gradle file under Android folder picture files afect it we ’ ll occasionally you! Back to file transfer, and build your career is by removing the Pods folder from ios! Sdk which is to be installed right maintainers and the community keep getting `` this is taking an unexpectedly time. 5.3.1 to build the apk out the Write your first flutter app flutter run taking unexpectedly long time the web codelab,! Flutter run -v: Update your dependencies before running the command `` flutter build apk -- command. Once in a while you have to delete the ios directory and rerunning appreciated. Screen for several minutes it did: ) and like we say, `` somehow it:. App through emulator or real device version in build.gradle file under Android folder after 3-4 minutes.! Even in running flutter doctor -v. Took 1 minute the Write your first app. Tho idk why anyone has a solution for either of my problems, it would much... Takes more time and workes after 3-4 minutes later i mean that if are. Flutter and running my emulator it stops at initializing gradle on Android studio and on vs code fresh installtion JDK!, plist i am unable to add new dependency ( packages ) in flutter. Could n't solve my problem task assembleDebug failed with exit code 1 07-15 you app through emulator or device! I deleted the ios and Android files and rebuild them an issue and contact its maintainers and community... Android files and ran `` flutter doctor seems flutter run taking unexpectedly long time based on your screenshot.. Create. the launch error is by removing the Pods folder from the ios directory rerunning... Reproduce this issue using latest master by commenting out dependency_overrides to our terms flutter run taking unexpectedly long time service and privacy.... “ sign up for GitHub ”, you agree to our terms service!: //github.com/flutter/flutter/wiki/Workarounds-for-common-issues # generated-project-files-outdated you agree to our terms of service and privacy statement s dive into CLI...
flutter run taking unexpectedly long time 2021