I simply terminated that process. But the unexpectedly long time error is not going away no matter what I try to do. I am new to flutter i have fresh installtion. I am working with an application that uses firebase_auth, cloud_firestore for information management and user authentication. I'll suggest you to run your code in the CLI not in the IDE terminal. Moved on to disconnect the phone. privacy statement. Already on GitHub? Frequently the duration is either a constant or computed as in the following example (taking advantage of the multiplication operator of the Duration class): The web version of Flutter is available on the beta channel. im facing that issue when i run theflutter build apk --release command. By clicking “Sign up for GitHub”, you agree to our terms of service and 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 . it is taking an unexpectedly long time. hi.when i type flutter run i get some eror: That's why i am unable to add new dependency (packages) in my flutter app. Will let you know when I am done, but we need to know why this problem happens. after fresh installation, even "flutter doctor -v" command stopped working. 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. Have a question about this project? Widgets don’t mapexactly to iOS views, but while you’re getting acqu… Where are you running your command? After installing flutter and running my emulator it stops at initializing gradle on android studio and on vs code. Just displaying the same message on the terminal. flutter doctor seems fine based on your screenshot above. (In my case) ... (T(This is taking an unexpectedly long time.) Hope it helps . It this gradle process succeeds, re-run the flutter run command. Trying flutter out but stuck in the very first step. Moved on to disconnect the phone. To try it out, check out the Write your first Flutter app for the web codelab. 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). ProcessException: ProcessException: Process "C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat" exited abnormally: 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:\ ). at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Sign up for a free GitHub account to open an issue and contact its maintainers and the community. scan taking a long time, it is still running, 10+hours, do picture files afect it? 1.delete your flutter lockfile Sign in Create the app. Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. Experience sub-second reload times without losing state on … Here is my flutter doctor -v. Took 1 minute. If anyone has a solution for either of my problems, it would be much appreciated. .. configs so i would save those . I have had the free version of windows 10 and have not had defender because I was using the free version of avast. And like we say, "somehow it did :)". 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. In my case, I have flutter_windows_v1.2.1-stable, I'm running my app on the real device(Redmi 4x). But on device it keeps scrolling screen for several minutes. Besides, can you reproduce this issue using latest master? at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61) I am making a fresh install. Just displaying the same message on the terminal. 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} 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. $ 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. Sign in 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. I was using an actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time" After these steps, you should be able to continue setting up Flutter normally. The only way to fix the launch error is by removing the Pods folder from the ios directory and rerunning. Join Stack Overflow to learn, share knowledge, and build your career. Open the IDE and select Start a new Flutter project. it solved a lot of my problems . 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. 问题一. 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. You have to constantly keep those up to date . Redo. I use VSCode on Mac, and when I build for ios (either simulator or device), I receive lots of: 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. Current version installed is 1709 Build16299.309. 7 3 ️ 5 2 1 kangwang1988 reopened this May 27, 2019 Sign up for a free GitHub account to open an issue and contact its maintainers and the community. 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. path like this: /my-app/ios/Flutter/App.framework, use flutter run -v It worked :) And like we say, "somehow it did :)" If I restart my computer it takes 4-5 minutes and even the shutdown time is 3-4 minutes. (This is taking an unexpectedly long time.). The dates and the times for these files are listed in Coordinated Universal Time (UTC). 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. 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. All as in docs. For my side it was about the updating sdk when i downgraded everything and run Flutter clean then Flutter build everything works perfectly Update dart Sdk == updating the flutter sdk which is to be installed right? I had the same problem even in running flutter doctor but it just takes more time and workes after 3-4 minutes later. 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. @dnfield 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.) We’ll occasionally send you account related emails. 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. Switched my phone back to file transfer, and it's good now. Do you have more context towards AnsiSpinner's timer-callback behavior? It will start working automatically. Flutter doctor takes long time. 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. flutter项目解决Initializing gradle... (This is taking an unexpectedly long time.) None of these solutions have worked for me. You tried running you app through emulator or real device? If again it appears "taking too much time" then turn on your internet connection and wait for 10 to 15 minutes. You can check the Gradle version in build.gradle file under Android folder. 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. Already on GitHub? at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) privacy statement. Moreover Flutter run takes ages I am trying the default project you get when you do flutter create . So let’s dive into the CLI to see what we can use on an everyday basis.. Download Gradle files from here https://gradle.org/, I understand this might be noob answer, but might want to give it a try. Error launching application on iPhone 11." These can act as containers for other UIViewclasses, which form your layout. (This is taking an unexpectedly long time.) Hi all, I recently got Dell Inspiron 15-5577 Gaming i5 Model without SSD with Windows 10 single language installed. ... Flutter 初学使用过程中 使用flutter run后报错 Gradle task assembleDebug failed with exit code 1 07-15. It just remains that way. In Flutter, the rough equivalent to a UIView is a Widget. Because it looks like your app is updating your gradle it'll take a bit of time, I'm running the command on Terminal. ... 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. Have a question about this project? If the duration is statically known to be 0, consider using run. 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.) 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. Then click Next. You signed in with another tab or window. "this is taking an unexpectedly long time". Redo. to your account. so i realized that every once in a while you have to delete the ios and android files and rebuild them. It outputs: this is taking an unexpectedly long time. @Iampato tried it. ; Select Flutter Application as the project type. 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". When i deleted the ios and android files and ran "flutter create . " On iOS, most of what you create in the UI is done using view objects, which areinstances of the UIView class. It worked :) 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. Iampato opened this issue Apr 4, … Explain a little better what you mean different gradle version. All other commends working fine like flutter run, flutter doctor etc. 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. A negative duration is treated the same as a duration of 0. Hi there, after updating Android SDK build tools and restarting PC flutter started working again. I have fixed that issue by installing the latest JDK and JRE and added both paths to environment variables. Great to hear that. Fantashit March 27, 2020 1 Comment on it is taking an unexpectedly long time. it fixes my flutter pub get speed but flutter urn and apk build still taking much time. Successfully merging a pull request may close this issue. ... 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. By clicking “Sign up for GitHub”, you agree to our terms of service and @hamidabdulmalik 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. Do you want to run your Flutter app on the web? not Integrated Terminal of Visual Studio Code that I'm using for development. Note that this will delete all gradle , manifest , plist. On simulator, 'only' around 20 of them. @zoechi after fresh installation, even "flutter doctor -v" command stopped working. Mobile App Development & Android Projects for $15 - $25. Switch usb port. Flutter crash report; please file at https://github.com/flutter/flutter/issues. (This is taking an unexpectedly long time.) Of course, you can’t keep everything. Switch usb port. An instant in time, such as July 20, 1969, 8:18pm GMT. 问题:可能会一直停留在Initializing gradle…过不去。 Initializing gradle是在试图从官方网站获取gradle,由于众所周知的原因,速度会很慢(及时挂了挂代理也会一直卡在这里)。 You signed in with another tab or window. Please add the output of flutter doctor -v. @hamidabdulmalik Flutter doctor. Created a new flutter project. Whats your take on this? Please, how do I revert to a later master? and none of the mentioned ways couldn't solve my problem. The text was updated successfully, but these errors were encountered: Thanks for your response.