FlutterError: Unable to load asset

后端 未结 22 3336
死守一世寂寞
死守一世寂寞 2020-11-30 10:31

This is the folder structure of my app

.idea
.vscode
android
build
fonts
 Oxygen-Bold.tff
 Oxygen-Light.tff
 Oxygen-Regular.tff
images
 pizza0.png
 pizza1.pn         


        
22条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 11:36

    This issue still existed in my case even after, flutter clean (deletes build folder) and proper indentations in yaml file

    It got fixed by itself, as it could be an issue related to Android Studio.

    Fix 1) Restart the emulator in Cold Boot mode, In Android Studio, after clicking List Virtual Devices button, click Drop down arrow (last icon next to edit icon) => Choose Cold Boot Now option. If issue still exist, follow as below

    Fix 2) After changing the emulator virtual device as a workaround,

    For Example : From Nexus 6 to Pixel emulator

    --happy coding!

提交回复
热议问题