IconData takes a long time to load and does not show icons - flutter

The list with icons (IconData) takes a very long time to load, about a minute. Previously, there was no such problem - the list was loaded in a couple of seconds. I tried reinstalling Flutter and Android Studio on an SSD, but it didn't help.
How can this be fixed?
Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.marketplace, Dart, com.thoughtworks.gauge, org.jetbrains.kotlin, io.flutter, org.intellij.plugins.markdown
Dart: 203.8452
Flutter: 62.0.1

The developers have fixed this bug in one of the recent updates.

only need to update your android Studio, go to Setting-update-check Now
then update if need it will work smoothly after that

Related

Flutter Gradle generating signed bundle

I have this error :
A Generating signed Bundle requires you to update the Android Gradle plugin to version 3.2.0 or higher.
But i have enter image description here
And :
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
Dart (221.6096)
io.flutter (71.2.4)
Some Idea ?
i'm on win 11

Flutter project code is not rendering in Android studio

my flutter project is not rendering properly. if I have forgot to add the semicolon, So not getting error in that line but after run the project or hot reload so that time getting error in consol. and also not getting hint option for wrap widgets on existing widgets. I'm using the latest android studio version.
Android studio version : Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.github.dhaval2404.material_icon_generator (1.3)
Dart (221.6091)
pl.pszklarska.pubversionchecker (1.3.5)
io.flutter (71.2.4)
you can see in below image.
After this issue work speed is very low, So please help me to find out the issue.
At the bottom of the Android Studio,There is a tab called: Dart Analysis. Click on it to open the tab.
On the left hand side of the Dart Analysis screen that opens is a settings Icon. Click on the icon.
On the settings screen, make sure that "Scope Analysis to the Current Package" is ticked on.
Restart your IDE

Gradle takes long (40 seconds) even with no code change (flutter)

I use VS code and building a sample app. I have a 6-core AMD processor (FX-6300) with 32 GB RAM, and an SSD. I've just been unable to get builds fast.
This is my current gradle.properties file
org.gradle.jvmargs=-Xmx3096m -XX:+UseParallelGC -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
android.useAndroidX=true
android.enableJetifier=true
org.gradle.caching=true
org.gradle.daemon=true
org.gradle.vfs.watch=true
org.gradle.configureondemand=true
Even with no change building (F5: Start Debuging) the build takes 40 seconds.
gradlew --version shows
------------------------------------------------------------
Gradle 6.7
------------------------------------------------------------
Build time: 2020-10-14 16:13:12 UTC
Revision: 312ba9e0f4f8a02d01854d1ed743b79ed996dfd3
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 15.0.2 (Oracle Corporation 15.0.2+7-27)
OS: Windows 10 10.0 amd64
Please help.
I have no idea what your code is or why its taking too much to build as you mention no info about .
But in case your building multiple projects adding org.gradle.parallel=true will help a lot .
And assuming your build will need org.gradle.jvmargs=-Xmx4096M then the next time all the details will be cached so it will spend less time to run , so giving more to org.gradle.jvmargs=-Xmx~ might help as well .
An increase in the memory size will help you to hold caches of your bigger build and thus improving the performance.

Visual Studio Code took 10.7 GB RAM usage after using it for one hour

It happened today when I suddenly noticed processes started getting slow on the computer. So I checked Task Manager to see what causes it.
I have waited a couple of minutes to see if it changes by keeping Visual Studio Code in idle state and then my computer dumps the memory in BSoD (blue screen of death).
After rebooting, I tried the same way to reproduce the state and within 20~30 minutes, it is up to 5 GB.
0 909 4452 c:\Users\arbaz\.vscode\extensions\ms-python.python-2018.12.1\languageServer.0.1.72\Microsoft.Python.LanguageServer.exe
What are the possible reasons causing this and how do I fix it?
Latest version:
Version: 1.30.0 (system setup)
Commit: c6e592b2b5770e40a98cb9c2715a8ef89aec3d74
Date: 2018-12-11T22:29:11.253Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 10.0.17134
Version: Code 1.30.0 (c6e592b2b5770e40a98cb9c2715a8ef89aec3d74, 2018-12-11T22:29:11.253Z)
OS Version: Windows_NT x64 10.0.17134
CPUs: AMD Ryzen 7 1700 Eight-Core Processor (16 x 3000)
Memory (System): 15.95 GB (3.87 GB free)
VM: 40%
Screen Reader: no
Process Argv: C:\Users\arbaz\AppData\Local\Temp\tasks.py
GPU Status: 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
CPU % Mem MB PID Process
0 66 14620 code main
0 84 1092 gpu-process
0 51 6332 shared-process
0 199 8312 window (tasks.py - Visual Studio Code)
0 85 11724 extensionHost
0 2278 4452 c:\Users\arbaz\.vscode\extensions\ms-python.python-2018.12.1\languageServer.0.1.72\Microsoft.Python.LanguageServer.exe
0 5 11296 console-window-host (Windows internal process)
0 187 14320 window (Process Explorer)
Extensions:
Extension Author Version
(truncated)
-------------------------------------------------------
better-comments aar 2.0.3
vscode-django bat 0.17.0
unique-lines bib 1.0.0
python-extension-pack don 1.4.0
permute-lines ear 0.0.10
MagicPython mag 1.1.0
python ms- 2018.12.1
vscodeintellicode Vis 1.1.2
This issue is mostly caused by the extensions.
Try to monitor menu Help → Open Process Explorer for a certain period to see which process name is taking large memory.
Try uninstalling all extensions and removing all their junk from %USERPROFILE%\.vscode\extensions for windows.
This problem happened to me yesterday. I managed to fix the problem, but I am not sure if my solution applies to yours. I'm using Windows 10 and Visual Studio Code version 1.33.1.
The solution is to go to settings and enable jedi. The culprit that was consuming excessive RAM was Python language server. So, by enabling jedi, instead of using the Python language server for the intellisense function, jedi was used instead.

Android AVD not starting

I try to set up my first Android AVD by starting it from Eclipse via Android AVD Manager.
Now I created a device named "EclipeTestDevice" with the following parameters:
- Device: Nexus 4
- Target: Android 2.3.3
- CPU: Intel Atom (x86) > of course I installed the "Intel x86 Emulator Accelerator" with the Android SDK-Manager
- Skin: HVGA
- Memory Options: RAM 1907, VM Heap 64 (this was a proposal by the device)
When I start the Device the new window appears, but only the text "android" (the android logo) is displayed and the device does not continue (I waited for about 10 mins).
I also tried other devices, but no one works.
Does anyone have a hint for me?
Thanks!
Can you try the configuration as shown in the figure(please use device and ABI of your choice).