Search code examples
android-studioflutterassets

Always shows "Indexing" alert while continuously adding assets in Android Studio


I am working in a Flutter project using Android Studio. When I try to add assets one after another to project, I am getting "Indexing" alert on every continuous asset addition process.

Here is the alert,

enter image description here

This happens even after 1 minute when I tried for testing. Specifically saying,

Process -> Response -> Result

  • Drag & drop Image 1 -> No issue -> Successfully added
  • Drag & drop Image 2 -> Shows the alert -> Failed to add
  • Again drag & drop Image 2 -> No issue -> Successfully added
  • Drag & drop Image 3 -> Shows the alert -> Failed to add
  • Again drag & drop Image 3 -> No issue -> Successfully added
  • .....

I have to spend double time for this asset adding task. Why this happens, even I try to add after 1 minute ?

Thanks in advance


Solution

  • You can select all the assets you want to add and paste it into the assets folder instead of doing it one after the other.

    if its an image, you can create a different folder inside the assets and name it "images", then paste all the image related assets into it