Karol
ย ยทย Your go-to Flutterflow guy

unable to locate asset entry in pubspec.yaml: "fonts/CupertinoIcons.ttf"

Hey,

after trying to compile my project in VSCode, I keep getting the same error:

Error: unable to locate asset entry in pubspec.yaml: "fonts/CupertinoIcons.ttf".
Target aot_android_asset_bundle failed: Exception: Failed to bundle asset files.


FAILURE: Build failed with an exception.

* Where:
Script 'E:\KW\Grafiki\VSC\Config\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1297

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'E:\KW\Grafiki\VSC\Config\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

I tried manually adding required asset, but error still persist.

Error happens from freshly downloaded FF project.

Did anyone have such issue? Any ideas how to solve it?

1
2 replies